Display a list of sub-pages (listing of articles in a category) - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: Scripts & Components (http://get-simple.info/forums/forumdisplay.php?fid=11) +--- Thread: Display a list of sub-pages (listing of articles in a category) (/showthread.php?tid=1788) |
Display a list of sub-pages (listing of articles in a category) - tazmandev - 2011-06-01 I need advice on how to aproach programing for a simple Category -> Product/Service website I am a medium level experience PHP programmer. End pls excuse my english. I need to create a simple website with a few main pages (top level pages) and subpages for them. Something like Category (top level page) -> Products or Services (sub pages) In the top level page I need to display a list of the subpages in a fashionable way, each list item having: 1. Thumbnail for the subpage (product or service) 2. Title of subpage 2. Excerpt of the subpage 3. Read more link The subpage will be a regular second level page. I thought I would use the i8n Custom fields Plugin to define the thumbnail path, and excerpt for each subpage How would you aproach this? Where to place the code? in functions.php of template? Make a plugin ? I am sure this would be useful for many purposes. Display a list of sub-pages (listing of articles in a category) - tazmandev - 2011-06-07 tazmandev Wrote:I thought I would use the i8n Custom fields Plugin to define the thumbnail path, and e Seems like no-one is willing to share some experience on this topic ... Display a list of sub-pages (listing of articles in a category) - polyfragmented - 2011-06-07 tazmandev Wrote:Seems like no-one is willing to share some experience on this topic ...Sometimes posts get overlooked and bumping it occasionally can do wonders. tazmandev Wrote:I am sure this would be useful for many purposes.I totally agree with you there, I might even have a use for something like this myself in an up-coming project. I saw your first post, but couldn't really come up with a good approach... sadly, I'm not a good programmer. Display a list of sub-pages (listing of articles in a category) - Oleg06 - 2011-06-08 may be right for you this plugin http://get-simple.info/extend/plugin/pages-excerpts/62/ Display a list of sub-pages (listing of articles in a category) - mvlcek - 2011-06-08 tazmandev Wrote:I need to create a simple website with a few main pages (top level pages) and subpages for them. Possible solution with plugins I18N, I18N Custom Fields, I18N Search and DynPages:
Display a list of sub-pages (listing of articles in a category) - RobA - 2011-06-08 tazmandev Wrote:I need to create a simple website with a few main pages (top level pages) and subpages for them. I think that is almost what I am doing on my site at this page: http://www.cartocopia.com/portfolio/ I'm using Mike's Page Caching plugin: http://get-simple.info/extend/plugin/page-caching/65/ Then in that portfollio page I have the following (simplified for you) code in my template (for that page): Code: /* Uses Mike's page caching plugin http://get-simple.info/extend/plugin/page-caching/65/ */ So by making the thumbnails <slug>_thumb.jpg you can grab their reference, then on the echo line just build your image, title and link. Add on the page excerpt plugin (as suggested by Oleg) http://get-simple.info/extend/plugin/pages-excerpts/62/ and you can also grab an excerpt (200 chars, text format by default) in the loop with something like: Code: $snippet = page_excerpt($subpage[0]); then also echo it out. Good luck- -Rob A> Display a list of sub-pages (listing of articles in a category) - Oleg06 - 2011-06-08 still have such a plugin http://get-simple.info/extend/plugin/simplepagecontent/87/ Display a list of sub-pages (listing of articles in a category) - tazmandev - 2011-06-09 Now I am overwhelmed with solutions. I will look at every one of them this afternoon. Thank a lot. |