Jump to content

jetag

Members
  • Content Count

    14
  • Joined

  • Last visited

Community Reputation

1 Neutral

About jetag

  • Rank
    Jr. Member
  • Birthday 02/06/1990

Profile Information

  • Gender
    Male
  • Location
    Paris, France
  • Interests
    street art, urbanism, architecture, processwire

Recent Profile Visitors

1,360 profile views
  1. Don't be sorry you 've been a great help I finally been playing with the Authors template from the blog profile of Ryan I'm not sure what i did but it works i'm really discovering programming so I take it step by step again thanks for your tips
  2. Thank you Joss you're more a programmer than you admit ;-) I have been playing with the search template but I can't figure out the selector to make it look at created_users_id seems to work for or the fields but not this one ? $matches = $pages->find("title|article_introtext~=$q, limit=50");
  3. Hi, thank you so much Joss, doing your tutorial answered so much of my questions. This step by step was more than useful. I'm trying to push it a step further by sorting the articles with the default field createdUser. so I'm hijacking your category example but I doing something wrong here is the authors functions i have so far function newsList(){ // Grab the page name from the url $thisAuteur = wire("page")->name; // If the category is not called "news" then output the category name as a selector for the find. if($thisAuteur !="jetag") { $auteur = "createdUser.title=" . $thisAuteur; } // Get the news posts - limited to ten for later pagination $newsposts = wire("pages")->find("parent=/news-articles/, $auteur, template=TUT_news, limit=10"); $out =" "; //Loop through the pages foreach($newsposts as $newspost){ $out .="<div class='clearfix'>"; if($newspost->article_thumbnails){ $out .="<a href='{$newspost->url}' class=''>"; $out .="<img class='align_left' src='{$newspost->article_thumbnails->getThumb(listingthumb)}'>"; } $out .="<h3>{$newspost->title}</h3>"; $out .="<p>{$newspost->article_introtext}</p>"; $out .="</a></div>"; } // Pagination $out .="<div class='pagination'>"; $out .= $newsposts->renderPager(array( 'nextItemLabel' => "Next", 'previousItemLabel' => "Prev", 'listMarkup' => "<ul>{out}</ul>", 'itemMarkup' => "<li>{out}</li>", 'linkMarkup' => "<a href='{url}'>{out}</a>" )); $out .="</div>"; echo $out; } /* CATEGORIES LIST This lists available categories */ function auteursList(){ $auteurs = wire("pages")->find("parent=/admin/access/users/, template=TUT_news_index, sort=title"); $out =" "; foreach($auteurs as $auteur){ $out .="<li><a href='{$auteur->url}'>{$auteur->title}</a></li>"; } echo "<ul>$out</ul>"; } Does the createdUsers field works a different way from the other fields or am I just forgetting something in the code? thank you very much for sharing all this
  4. jetag

    Map Marker Map

    ok this part is already in header my bad
  5. jetag

    Map Marker Map

    Hi Mats, I assume you were talking about this script <script type='text/javascript'> RCDMap.options.zoom = 15; RCDMap.init('map', {$page->map->lat}, {$page->map->lng}); RCDMap.addMarker('{$page->title}', '{$page->niveau}', {$page->map->lat}, {$page->map->lng}); </script> so I 've tried to move it in the header but it isn'resolving the problem./ thanks thought.
  6. jetag

    Map Marker Map

    Hi Mats, if you speak about <script type="text/javascript" src="<?php echo $config->urls->templates?>js/RCDMap.js"> </script> it is already just before the closing head tag. Or do you mean the complete code inside RCDMap.js ? In that case wouldn't it will be to heavy to load for each page?
  7. jetag

    Map Marker Map

    Hi, first I want to thank you all for your help. I'm just a starting to learn php and javascript and processwire is an incredbly wonderful way to do it. As Ryan recommended I look the javascript console. it is returning me an error on the RCDMap.js on line 24 Uncaught ReferenceError: $ is not defined So I change the call of jquery from the footer to the header and now the marker appears but the navigation tool on the map are still bugging. there is no more error in the javascript console. The RCDMap.js is Ryan's one, for the rest of the code I made a zip file with my template code and the map.php that calls the fonction for the map you can download it here. I don't know if you need other files if so let me know
  8. jetag

    Map Marker Map

    apparently since v3 you don't need an API key anymore unless you have huge needs of maps which isn't my case http://stackoverflow.com/questions/2769148/whats-the-api-key-for-in-google-maps-api-v3 but I'll try it
  9. jetag

    Map Marker Map

    Thank you Apeisa, I put the link for RCDMap.js and the google API in the head instead of the footer and now my map appears centered on the good point. Don't get why but I'm quite happy Still the marker doesn't appear Though the code output in the source seems good, i got that <div id='map'></div> <script type='text/javascript'> RCDMap.options.zoom = 15; RCDMap.init('map', 48.889828, 2.241181); RCDMap.addMarker('Gouffre de Villon', '1048', 48.889828, 2.241181); </script>
  10. jetag

    Map Marker Map

    yes #map is width: 350px; and height: 350px; I've also tried it with a width of 100% but nothing seems to work
  11. jetag

    Map Marker Map

    Hi Mats, thank you for your answer. in my template I add include("./includes/map.php"); and here is my map.php <? echo "<div id='map'></div>"; $js = "<script type='text/javascript'>"; $js .= "RCDMap.options.zoom = 15;"; $js .= "RCDMap.init('map', {$page->map->lat}, {$page->map->lng});"; $js .= "RCDMap.addMarker('{$page->title}', '{page->niveau}', {$page->map->lat}, {$page->map->lng});"; $js .= "</script>"; echo $js; ?> I also add in my footer link to RCDMap.js and to the google API. the source code seems to output well but there must be something wrong as no map appears.
  12. jetag

    Map Marker Map

    Hi everyone, I'm totally new to web developing and I've to say that processwire offers me a lot of fun. thank you very much to Ryan and everyone who help making a such easy and complete framework. however this map module is giving me a very hard time. I install it very easily and it works perfectly on the admin side. but I can't make the map appear in the front end. Can anyone help me I'm totally lost on this issue. here is the page I want to make the map appear http://www.strati-varius.com/decors/face-cachee-de-l-uvre-d-art-tonio/ the map should appear at the end of the page, i can see in the source that all the code is here but nothing is rendered. any help will be much appreciate excuse me in advance for my poor english
  13. sorry I just get what was the problem so I going to try to install the 2.3 version of PW
  14. Hi, everyone I'm using processwire for the very first time, actually it is also the very first time I use CMS. so I'm a total newbie but doing my best to get over it. I wanted to install PW with the skyscrapers profile because of it's awesome search engine. I get stuck in the installation after having created the admin account i get these I am installing a PW 2.2.9 with the skyscrapers profile files changed on an OVH server. Thank you very much for your help
×
×
  • Create New...