Jump to content

aren

Members
  • Posts

    27
  • Joined

  • Last visited

Posts posted by aren

  1. Hi everyone!

    I've been away from web dev for a while (designing more), so I'm feeling a bit out of touch.

    Can anyone tell me what's the best way to combine multiple rss feeds in one single site/page these days? Preferably with javascript (or is there a better way these days?)

    What I want to do is to fetch only the images of multiple (hundreds, probably) rss feeds and display them in one site/page as one big gallery.

    Thanks, and cheers!  :)

  2. Hey guys,

    I was wondering if it's possible to build a Tumblr-style website with ProcessWire. Sections/pages would be Article, Image, Video, Audio and Quote. But how can I get the posts from all of them (ordered by date as in a blog) in the homepage?

    Many thanks for any help!

  3. Hi guys, I have a few questions regarding a few common practices when dealing with CMSes:

    1- How can I install ProcessWire above the root for better security?

    2- How can I change the default folder for uploading images? For example, I'd like to create a folder /uploads in the root and have all my uploaded images in there. And can I have multiple folders or just one folder for all images?

    3- Is it possible to have site assets (css, js etc) stored in a folder /assets in the root?

    If you have other common practices or security tips etc and you'd like to share, please do. ;)

  4. You could do it, but I can see already lots of problems in your structure, because , if you will have more information related to each drink, how will you do? repeat it in each entry? The best way to solve this in my opinion, is to create a "drinks" page, and start adding all your drinks as children of that page. You can have a template for drinks with the fields for the info. Then you just have to refer to that drink in the blog entry via a pageFieldType instead of a text field. For listing the drinks it also becomes simpler:

    $drinks = $pages->find("template=drink");
    echo "<h2>Drinks:</h2>";
    echo "<ul>";
    foreach($drinks as $drink){
        echo "<li>";
        echo $entry->title;
        echo "</li>";
    }
    echo "</ul>";

    Is the code above the same as the code below?

    <?php $drinks = $pages->find("template=drink"); ?>
    <h2><?php echo $page->title; ?></h2>
    <ul>
    <?php foreach($drinks as $drink); ?>
    <li><?php echo $entry->title; ?></li>
    </ul>
    
  5. Greetings,

    What diogo is showing you is the SQL syntax for saying "not equal to."  In other words, this statement says, "Find all pages using the 'entry' template where the 'drink' field is not empty."  In other words, only grab pages where a drink was entered.

    The way it is shown now, you would get repeated drinks in your list.  Are you hoping instead to just cite each drink that is mentioned at all in any blog post?

    Thanks,

    Matthew

    Ahh, yes I'd just like to show each drink featured in blog posts (no repeated drinks).

    Do I have to change something in the code?

    Thanks Matthew!

  6. Hey diogo,

    I have a text field named "Drink" for each blog entry - where in each entry I'll add a kind of drink (eg: gin, water, beer etc)

    So what I want to do is create a list containing all drinks I've added in all blog entries so I'd have something like this:

    <h2>Drinks:</h2>

    <ul>

    <li>Beer</li>

    <li>Gin</li>

    <li>Water</li>

    etc

    </ul>

    In this example, the list is sorted alphabetically..

  7. I'm liking ProcessWire very much, but I still find setting a blog with it sooo complicated compared to others CMSs. 

    Most of my projects use blogs and news sections, so may I ask if there's any plans to simplify the blogging setup in the future?

    And for now, is there any *simple* blog profile (just title, date, category and post) with *no* CSS styles - just a blank slate?

    Thanks!  ;)

×
×
  • Create New...