Jump to content

Martin Muzatko

Members
  • Posts

    50
  • Joined

  • Last visited

Everything posted by Martin Muzatko

  1. Hi there! To allow something as simple as pagination with a little help of $_GET and math. With an additional selector offset, you should be able to get pagination easily done without extra modules. $limit = 10; $offset = $limit * $_GET['page'] - $limit; // page 1 = offset 0, page 2 = offset 10 $posts = $pages->find('template=news, sort=-created, offset='.$offset.' limit='.$limit); So far so good. The only thing missing is the markup: <div class="pagination"> <?php $pagination = $_SERVER["REQUEST_URI"].'?page='; ?> <a href="<?=$pagination.'1'?>">First</a> <!-- numbers --> <?php $amount = count($pages->find('template=news')); while ($i = 1; $i < $amount / $limit; $i ++ { ?> <a href="<?=$pagination.$_GET['page']+$i?>"><?=$i + ($offset / $limit) // 1 + 10/10 = 2 ?></a> <?php } ?> <a href="<?=$pagination.$amount?>">Last</a> </div> Kept very simple so far. But this is only one good example of how to use the offset selector. If there is already something like that implemented, I'd be glad to hear from it! Thanks in advance. Cheers, Martin Muzatko
  2. RT @Adlynh: @OWAtheone @gala_con *feels* My very first brony convention, so great memories!

  3. RT @OWAtheone: Also I just found this picture of the first @gala_con that I took... #throwbackthursday http://t.co/XiaP7ctwvO

  4. RT @PonyvilleFM: Hasbro in Talks to Buy DreamWorks Animation.Thoughts? #brony #dreamworks http://t.co/MKf8ijT4ij

  5. Hi there! Yep, I would like to have @ at-tags linked to the said twitter profile. I thought thats possible with the default twitter module? Thanks in advance!
  6. Doesn't work here either. Also @ Mentions and # Hashtags. This is what it looks like: These are my options set: <?php $t = $modules->get('MarkupTwitterFeed'); $t->limit = 20; $t->linkUrls = true; $t->showHashTags = true; $t->showAtTags = true; $t->showDate = 'after'; // generated markup options: $t->listOpen = ""; $t->listClose = ""; $t->listItemOpen = '<div class="feed">'; $t->listItemClose = "</div>"; $t->listItemDateOpen = "<span class='date'>"; $t->listItemDateClose = "</span>"; echo $t->render(); ?> Hope you guys can help me out. But I think the structure of twitterJSON changed, so that might be a reason.
  7. What else slows down the experience is, that I got no bulk-options. Like deleting more than one template at once. But I guess thats because pw checks if it is still in use. Another thing I would like to have is bulk-create pages. If you got a medium sized project, and most of the pages are identic, it takes a while to create 15~20 pages. Creating an outline - finetune the details later, would be really nice to have! Regarding the templatelister: It took me a while today to find out why I weren't able to delete that basic-page. Turns out that you have to clear the trash bin. (duh) While I get no results for the Find section in the admin panel when I searched for pages using the basic-page template. All in all, pw is still one of my biggest dreams to come true: easy for clients to change, easy and fast for me to setup and most importantly: flexible! Thanks for all your support guys.
  8. I tried to create a very minimalistic news system. When I found this here: http://processwire.com/api/templates/ <ul>
<?php
 $features = $pages->find("template=press_release, featured=1, limit=3, sort=-date"); foreach($features as $feature) { echo "<li>" . "<h3><a href='{$feature->url}'>{$feature->title}</a></h3>" . "<span class='date'>{$feature->date}</span>" . "<p>{$feature->summary}</p>" . "</li>";
 } ?></ul> Do I actually need a field called date, or can I access the creationdate without creating one? I'd like to find some wikipages regarding that topic. Default fields that are always accessible. Thanks in advance!
  9. Currently busy with creating a theme for our website. What do you guys think? The background belongs to @sambaneko http://t.co/RNv4m6lSk0

  10. Thanks for the hint! The Reno theme makes it easier for me to navigate the backend. Even though I miss the icons in the sidebar, which only appear when selected.
  11. I found them.. they are awesome! Thank you so much for your help guys! processwire is a bit clunky, but compared to wordpress or TYPO3, I think I just have found CMS-heaven *_* Thanks a lot!
  12. Hi there! After a friend showed me the awesomeness of processwire, I'm trying to attempt my own templates now and look how I'll do. When doing that, I missed a very important feature that I couldn't really find, but I have seen it in so many pages that were made with processwire. A for or while field which can have multiple repeatable sub-fields. Pretty like FieldTabOpen, just that I can add dupilcates of the fields within that field. Example: http://depts.washington.edu/hub141/#other A more simple example that SHOULD be possible to be done via fields/templates alone without extra modules. It is possible to do that without modules, right? Please let me know.. It would be really awesome to finally have a CMS that will solve this flexibility problems. Cheers, Martin
  13. One of our facebook fans: "Totally gonna come as a changeling who goes to canterlot high and is dressed for summer."

×
×
  • Create New...