FORUMS CLOSED DUE TO SPAM. YOU STILL CAN ADD POST!

Creating a blog with Frog

Feed 6 posts, 4 voices

Avatar
2 posts

Hi

I’ve been asked my boss to create a blog on our website and I am totally baffled. I have basic knowledge, at best, of creating webpages and need some guidance. Can anyone help?

Current Frog Version: 0.9.3 I think

Thanks

Paul

 
Avatar
180 posts

:) It’s very simple with Frog CMS.

You can create a page with slug for example /blog/.

All children pages will be blog posts pages.

At main page you can display blog line with all pages of section /blog/.

Example:

Find blog page:

<?php $blog_pages = $this->find('/blog/')->children(); ?>

Than you can display all pages as blog entries:

<?php foreach( $blog_pages->children(array('limit' => 4, 'offset' => 1, 'order' => 'page.created_on DESC')) as $article ): ?>
<div class="entry">
  <h3><?php echo $article->link(); ?></h3>
  <?php echo $article->content(); ?>
  <?php if ($article->hasContent('extended')) echo $article->link('Continue Reading&#8230;'); ?>
  <p class="info">Posted by <?php echo $article->author(); ?> on <?php echo $article->date(); ?></p>
</div>
<?php endforeach; ?>

You see: it’s very simple.

Please, ask more questions. What you want to know?

 
Avatar
2 posts

Thanks for the response jMas, the only problem is that I really dont seem to know what I’m doing.

I’ve set up a page called Blog, set its page type to Archive. Then created a page below this called Blog: Test1, with a slug of blog=001.

Where do I put the code you’ve written above?

My url for the site is www.basiliskdata.co.uk

Many Thanks

 
Avatar
180 posts

Ok. You can put my code to page with title “Blog” for showing all children pages as articles.

Note that page with title “Blog” should have slug “blog” not “Blog”. Or change page slug in code:

<?php $blog_pages = $this->find('/Blog/')->children(); ?>
 
Avatar
2 posts

Thanks again jMas.

I looked that the demo on the Frog site and followed what they had done and it’s working great.

Only thing is, I’ve tried to archive my news page, I want to do this by year but cant get it to work quite right.

News

This is code I’ve got in the sidebar to show the archive:

<div class=“aside-in”>
<?php $news = $this->find(‘news’); ?>
<?php $archives = $news->archive->archivesByYear(); ?>
<h3>News Archive By Year</h3>
<ul>
<?php foreach ($archives as $date): ?> <li><a href=”<?php echo BASE_URL . $this->url .’/’. $date . URL_SUFFIX; ?>”><?php echo strftime(’%Y’, strtotime(strtr($date, ‘/’, ‘-’))); ?></a></li>
<?php endforeach; ?>
</ul></ul></div> <!— end .aside-in —>

And this the code from my %Y News page

<?php $archives = $this->archive->get(); ?>
<?php foreach ($archives as $archive): ?>
<div class=“entry”> <h3><?php echo $archive->link(); ?></h3> <p class=“info”>Posted by <?php echo $archive->author(); ?> on <?php echo $archive->date(); ?> </p>
</div>
<?php endforeach; ?>

 
Avatar
1 posts

Any idea how to make an RSS feed for those blog entires? I’ve been trying to figure it out but my coding skills are really limited, and it would be great to have one for my website.

 
Avatar
24 posts

Tricks for Editing AVCHD/AVCHD Lite MTS files in Final Cut Pro 6/7 smoothly

What is the best solution for editing AVCHD and AVCHD Lite MTS/M2TS footage in Final Cut Pro? This is a frequently asked question by FCP users. Generally speaking, AVCHD footage is usually saved in MTS or M2TS container format, which are widely used by Sony, Panasonic, JVC, Canon camcorders.

AVCHD files are not natively supported by Final Cut Pro and must be transcoded to FCP friendly codecs such as QuickTime movie and Apple Intermediate Codec before importing to FCP. However, the best method for importing AVCHD/AVCHD Lite footage to Final Cut Pro 6/7 or FCP X is to transcode them to Apple ProRes encoded mov format. Along with some help from a AVCHD Mac Converter. If you are looking for a solution for this, just check out Pavtube’s MTS/M2TS Convererter for Mac, a top AVCHD Converter for Final Cut Pro.

About the software: This is an AVCHD/AVCHD Lite transcoding tool for Mac OS X only. The Mac MTS/M2TS to ProRes Converter deals with AVCHD footage straightly from Sony, Panasonic, JVC and various other camcorders and exports HD contents encoded in various codecs for editing and playing back. The FCP friendly codecs includes Apple ProRes family (ProRes 422, ProRes 422 LT, ProRes 422 HQ, ProRes 422 Proxy, ProRes 4444), DVCPRO, HDV, Apple Intermediate codec, etc. With this little gadget, you can easily import Panasonic TM900 MTS recordings to FCP, convert Panasonic GH2 MTS to ProRes, import Sony NEX-5N/NEX-7/A57/A65/A77 1080 60p AVCHD to FCP, load Panasonic SD900 MTS Videos to FCP, edit 50p/60p AVCHD in FCP (X) and convert AVCHD Lite MTS to ProRes for FCP.

Detailed guide of converting AVCHD/AVCHD Lite to Apple ProRes 422 for Final Cut Pro on Mac

Step 1. Free download and run the excellent Mac AVCHD to Final Cut Pro Converter, Click “Add” button and browse to the AVCHD footages either from scratch disk or cam HDD for loading to the converter.

Step 2. Click on “Format” bar and set a FCP friendly format in dropdown-list. You are advised to Follow “Final Cut Pro” template and “Apple ProRes 422 (*.mov)” format.

Step 3. Click convert button to start transferring AVCHD to FCP Apple ProRes 422 codec under Mac OS X.

Some more helpful features of the app:

1. Settings- click to set video resolution(1920×1080/1440×1080/1280×720/720×480), bitrate(from 1Mbps to 20Mbps), frame rate (24p/30p)

2. Editor (next to “Add” icon)- click to set deinterlace, denoise, mute, volume up, trim, crop, etc.

So there you have it. Once the conversion done, you can import AVCHD/AVCHD Lite MTS files into Final Cut Pro 6/7 or FCP X for smoothly editing as you want.

HOT NEWS: Pavtube is offering specials during its 2012 Euro Promotion Season. Never miss the chance to join the promotion.

Products on sale

Pavtube HD Video Converter Windows) (Mac) (20% Off)

Pavtube MXF Converter (Windows) (Mac) (20% Off)