GetSimple Support Forum
Links list in homepage sorted by Menu Priority - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16)
+--- Thread: Links list in homepage sorted by Menu Priority (/showthread.php?tid=3383)



Links list in homepage sorted by Menu Priority - tommy - 2012-07-28

I'm planning to have 10 links for my homepage to link to 10 pages in my site, sorted by each of the pages' menu priority. The list will be consists of the page title, a thumbnail image and contents from the meta description for each of the 10 page.

i've searched through most of the posts here as well as trying it myself but i unable to find a way to do this. anyone can point me to how to do this, using certain plugins, etc?

thanks so much!


Links list in homepage sorted by Menu Priority - mvlcek - 2012-07-28

tommy Wrote:I'm planning to have 10 links for my homepage to link to 10 pages in my site, sorted by each of the pages' menu priority. The list will be consists of the page title, a thumbnail image and contents from the meta description for each of the 10 page.

i've searched through most of the posts here as well as trying it myself but i unable to find a way to do this. anyone can point me to how to do this, using certain plugins, etc?

thanks so much!

If all the pages are on the same level (with the same parent page), you can use the I18N Plugin with custom rendering.


Links list in homepage sorted by Menu Priority - tommy - 2012-07-28

thanks i will try it out.

anyway, to echo the meta description into the homepage from each of the external pages is by using getPageField($page,metad), correct?


Links list in homepage sorted by Menu Priority - tommy - 2012-07-30

mvlcek Wrote:
tommy Wrote:I'm planning to have 10 links for my homepage to link to 10 pages in my site, sorted by each of the pages' menu priority. The list will be consists of the page title, a thumbnail image and contents from the meta description for each of the 10 page.

i've searched through most of the posts here as well as trying it myself but i unable to find a way to do this. anyone can point me to how to do this, using certain plugins, etc?

thanks so much!

If all the pages are on the same level (with the same parent page), you can use the I18N Plugin with custom rendering.

how do i output a custom field called "myimage" for each of the subpages in the custom rendering?
i tried the code below but no image generated.

<li class="<?php echo $item->classes; ?>">
<a href="<?php echo htmlspecialchars($item->link); ?>">
<?php echo htmlspecialchars($item->text); ?>
</a>
<?php get_custom_field('$item->myimage'); ?>
</li>


Links list in homepage sorted by Menu Priority - mvlcek - 2012-07-30

tommy Wrote:how do i output a custom field called "myimage" for each of the subpages in the custom rendering?
i tried the code below but no image generated.

<li class="<?php echo $item->classes; ?>">
<a href="<?php echo htmlspecialchars($item->link); ?>">
<?php echo htmlspecialchars($item->text); ?>
</a>
<?php get_custom_field('$item->myimage'); ?>
</li>

Assuming that the custom field contains the full image URL:
Code:
<img src="<?php echo htmlspecialchars($item->myimage); ?>" title="My Image"/>



Links list in homepage sorted by Menu Priority - tommy - 2012-07-30

thanks mvlcek, it works!


Links list in homepage sorted by Menu Priority - tommy - 2012-07-30

to get the plugin to output the meta description of the each item:

<?php echo htmlspecialchars($item->metad); ?>