Jump to content

Stardog

Members
  • Posts

    1
  • Joined

  • Last visited

Stardog's Achievements

Starter

Starter (1/6)

0

Reputation

  1. I like what I've seen from ProcessWire so far, and it seems a decent alternative to EE, but maybe not. This is what I'm looking for: Website Setup Index Page Blog Page Portfolio Page The Blog Page needs custom fields Title (text)/Body (textarea) for each item/post. This seems doable no problem. The Portfolio Page needs custom fields Title (text)/Description (textarea)/Image (image) for each item/post. Again, seems doable. The Index Page needs to take pieces from the blog/portfolio pages and display them in this kind of way: <h1>Index Page</h1> <div> <h2>Recent blog posts (TITLE FIELD ONLY)</h2> <ul> <PW:ShowStuffFromThisPage page="blog" limit="10" sort="descending"> <li><PW:title/></li> </PW> </ul> </div> <div> <h2>Recent portfolio items (TITLE AND IMAGE ONLY)</h2> <PW:ShowStuffFromThisPage page="portfolio" limit="4" sort="descending"> <PW:title/> <PW:image/> </PW> </div> And the Blog Page would have something like this: <h1>Blog Page</h1> <PW:ShowStuffFromThisPage page="blog" limit="10" sort="descending"> <div class="blog-post"> <h2><PW:title/></h2> <PW:body/> </div> </PW> Also, can I do a conditional to make the most recent blog post look different? Like: <if blogpostindex > 1> Use different template code </if>
×
×
  • Create New...