Jump to content

jeremie

Members
  • Content Count

    9
  • Joined

  • Last visited

Community Reputation

1 Neutral

About jeremie

  • Rank
    Newbie

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. sorry for the dumb question I realised it was css related. anyway thanks for the hint .
  2. Hi , I'm having issue with a script i try to integrate to my homepage. it is working just like i wanted but it's covering my title and menu bar which i have fixed on top. i'm not sure if I explain myself right as i'm very new to this. here is the script: <script type="text/javascript"> jQuery(document).ready(function($){ 'use strict'; jQuery('body').backstretch([ <?php foreach($page->images as $image) { echo '"'."$image->url".'",'; } ?> ], {duration: 4000, fade: 500, centeredY: 2000 }); }); </script> thanks for your help.
  3. Thank you very much for all your help Snobjorn. This code doesn't work because i'm trying to have the same template for tag and category. but is this code would be correct? if ($page->parent-> template->name == "tags") { $field_name = "tag"; in that case I would make a template for categories and for tags and have the same template for both childrens
  4. Thank you very much Snobjorn, it works as a charm. Is there a function that retrieve me the type of field so it can change from tags to categories. $items = $pages->find("template=project, "function to find if $page is a tag reference or category" =$page"); the idea is to have only one template that I could use for listing all the project of one category or all the project that shares one tag.
  5. Hi, Sorry to bother again with my Noobies questions but I can't figure out something, It's probably have treated 100 times but as I probably don't have the good vocabulary I can't find anything in the forum. I would like to have a page who sort all my post ( they all have the same template named project) that share a same tag or category ( tag and category are two fields of page reference in the project's template ) so far I'm here <ul> <?php $items = $pages ->get("template=project")->children("tags=$page"); foreach ($items as $item){ echo <li>$item->title</li>; } ?> </ul> Also should I repeat the code with category field or is it better to have two separate templates one for the category list and one for the tag. I appreciate a lot all the help you can give me. my best
  6. thank you elabx this was the problem 👍
  7. Thank you very much for your answer. strangely echo $page->category->title; doesn't seem to work but the last example works perfectly
  8. Hi, sorry for the very nubby question but i can't understand why <?php echo $page->categories; ?> renders me 1041 instead of the name of the categorie I define categories being the name of the field I define thanks for your help
×
×
  • Create New...