Jump to content

Marty Walker

Members
  • Posts

    630
  • Joined

  • Last visited

  • Days Won

    3

Posts posted by Marty Walker

  1. I think I know what it might be. When I originally added my new template I asked PW to duplicate fields from another template.

    Just then I created a new template and added the fields manually and it all works now.

    Regards

    Marty

  2. Well I updated the install and I still get the same issue. I can see all the content when logged in but not when logged out. Here's a screen of the permissions for the page template. There's nothing bizarre in my template code that restricts any views. I really do not know why it's doing it.

    Image%202012.05.28%208:22:55%20PM.png

  3. Sure. But they definitely display correctly when I view the page as an admin.

    <?php
    foreach($page->videos as $videoitem) {
     echo "<dt><a href=''>{$videoitem->title}</a></dt>";
     echo "<dd><iframe width='{$vidx}' height='{$vidy}' src='https://www.youtube.com/embed/{$videoitem->video_link}?rel=0' frameborder='0' allowfullscreen></iframe></dd>";
    }
    

    Regards

    Marty

  4. Hi,

    I have a page template that has a repeater fieldtype (with two fields in it). For some reason (that I can't see) those repeater fields only display when I'm logged in as the admin and not as a guest. I don't have any access restrictions on the template and any other fields show up.

    I'm using the latest 2.2.2.

    Regards

    Marty

  5. Hi everyone,

    Lew's a very talented Sydney-based illustrator. He recently asked me to do a few upgrades on his site (which was running Textpattern). This gave me the opportunity to pitch a move to ProcessWire which he accepted having seen some other artist sites I'd done.

    http://lewkeilar.com/

    Shout-outs go to Antti (Thumbnails) and Soma (PageListImageLabel) for their great modules which help make ProcessWire a fantastic CMS for artists.

    Regards

    Marty

    • Like 1
  6. I either develop a PW site locally or on a subdomain on the destination server. In either case I haven't encountered any problems simply moving the install over (thereby skipping the installation step), uploading the database and even changing db username and passwords to match the destination setup. I usually zip up the local contents and extract it with the cPanel file manager too and haven't had any (touch wood) problems with permissions.

    Moving from a subdomain to the site root is the simpler option though: drag and drop :)

  7. Hi all,

    Following on from this thread: http://processwire.c...st-image-label/

    I'd like to sponsor a module that gives me (and any PW user too) the option to display image thumbnails in the page list. I know you can specify which fields to display in the page list in Templates > Advanced.

    Because I do a bit of work for artists this would be great option for me (and probably others) to have. I'd like it to work with Antti's Thumbnails module too.

    Please get in touch if you're interested: martin@smd.net.au

    Regards

    Marty

    • Like 1
  8. I tried that and changed the template settings too. I just get a blinking page loader arrow. No bother. I don't like modding core files anyway.

    It would be great if this was an core option at some point. PW is such a great CMS for artists. Having thumbnails alongside page names would be a great time-saver.

    Cheers

    Marty

  9. Hi,

    I've come across this issue which I can't work out and it's causing a bit of confusion.

    I have my child page list split over 3 pages:

    Image%202012.05.07%202:08:29%20PM.png

    If I'm on page 2 and decide to move eg: 'coral reef' below page '0030' the entire tree order gets jumbled up. Has anyone else come across this?

    (Please, don't anyone try this on a live site. I have and it does screw up the order.)

    A more illustrated example:

    Regards

    Marty

    • Like 3
  10. Hi Nico,

    Is there any reason why the javascript below is being inserted into my templates?

    Regards

    Marty

    <script type="text/javascript">
     $(document).ready(function() {
      $("li.PageListActiondelete a").live("click", function(el){
       if(!confirm("Are you sure?")) { return false; }
      });
     });
     </script>
    
  11. Thanks diogo. This is what I ended up with which works fine:

    <?php
    $today = time();
    if($page->prev->getUnformatted('publish_date')<$today && $page->prev->id > 0) echo "<li id='prev'><a rel='nofollow' title='{$page->prev->title}' href='{$page->prev->url}'>{$page->prev->title}</a></li>\n";
    if($page->next->getUnformatted('publish_date')<$today && $page->next->id > 0) echo "<li id='next'><a rel='nofollow' title='{$page->next->title}' href='{$page->next->url}'>{$page->next->title}</a></li>";
    

    Regards

    Marty

  12. Hi,

    I'm setting up some next/prev page linking code. I only want those links to show if the page's publish_date field is less than today. Here's my convoluted and cobbled-together code:

    <?php
    $today = time();
    if($page->prev->getUnformatted('publish_date')<$today) echo "<li id='prev'><a rel='nofollow' title='{$page->prev->title}' href='{$page->prev->url}'>{$page->prev->title}</a></li>";
    if($page->next->getUnformatted('publish_date')<$today) echo "<li id='next'><a rel='nofollow' title='{$page->next->title}' href='{$page->next->url}'>{$page->next->title}</a></li>";
    
    

    Firstly, is there a way to simplify this? Secondly, if there's no value returned for the previous page (for example) it still outputs the HMTL. ie:

    <li id='prev'><a rel='nofollow' title='' href=''></a></li>
    

    Thanks for any help.

    Cheers

    Marty

×
×
  • Create New...