Jump to content

nfil

Members
  • Content Count

    138
  • Joined

  • Last visited

Community Reputation

48 Excellent

About nfil

  • Rank
    Distinguished Member

Profile Information

  • Gender
    Not Telling

Recent Profile Visitors

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

  1. nfil

    AutoFbPost

    yes it is enabled! Thank you dimitrios I will try again later.
  2. I was reading a thread about Structured Data, is it possible to use this module to generate the AggregateRating? See MarcoPLY example. Thank you.
  3. Looking forward to the alpha version of Padloper
  4. nfil

    AutoFbPost

    I don't think that is possible because the FB app was created this week.
  5. nfil

    AutoFbPost

    thank you dimitrios. Sorry but I followed all the steps, yet nothing happens when I save the page in PW. Did not see where you change this on Settings -> Advanced, set the API version to 2.10,
  6. nfil

    AutoFbPost

    where do you find this ? thanks on Settings -> Advanced, set the API version to 2.10, add Product: Facebook Login, on Facebook Login -> Settings, set Client OAuth Login: Yes, set Web OAuth Login: Yes, set Enforce HTTPS: Yes, add "http://www.example.com/processwire/page/" to field Valid OAuth Redirect URIs. 
  7. nfil

    SeoMaestro

    thanks dragan! The server was running an older PHP version.
  8. nfil

    SeoMaestro

    I added this module to my site to test it. I see this error: Parse Error: syntax error, unexpected '?' (line 49 of /home/desert1/public_html/mytest/site/modules/SeoMaestro-master/InputfieldSeoMaestro.module.php) PW lastest DEV release. Thanks
  9. hi everybody! How do I limit the pagination numbers, just need 3 between the previous and next buttons? thank you.
  10. This is my Tree View: == Home == List ----- blog-post (has two page reference fields "categories" and "categories_a") ----- blog-post 1 == categories (List categories and latest blog-post title *) ----- category ----- my other category == categories-a ----- category-a ----- my other category a $categories = $page->children; foreach($categories as $category) { $posts = $pages->find("template=blog-post, categories=$category, limit=1, sort=-date"); foreach($posts as $post) { echo $category->title; echo $post->title; } } * Want to show the latest post for each category in the categories page. Not sure what I am doing wrong to retrieve latest posts. I changed it to this and its working now! $posts = $pages->find("template=blog-post, categories_select=$category, limit=1, sort=-date"); foreach($posts as $post) { $fimg = $post->featured_image; $thumb = $fimg->width(200); echo "<h4>Latest entry</h4>"; echo "<img width='200' src='$thumb->url' alt='$post->title'/>"; echo "<p>$post->title</p>"; }
  11. this is a good introduction to markup regions! I found it very useful: https://github.com/ryancramerdesign/regular
  12. After a few tests, I added a new category to the blog post. I created 2 templates for the new category: categories_a.php <?php namespace ProcessWire; ?> <div class='uk-child-width-1-2@s uk-child-width-1-3@m uk-grid-match uk-margin-large-bottom' pw-append='content' uk-grid> <?php foreach(page()->children as $category_a): ?> <a class='uk-link-reset' href='<?=$category_a->url?>'> <div class='uk-card uk-card-default uk-card-hover uk-card-body'> <h3 class='uk-card-title uk-margin-remove'><?=$category_a->title?></h3> <span class='uk-text-muted'><?=$category_a->numPosts(true)?></span> </div> </a> <?php endforeach; ?> </div> <aside id='sidebar'> <?=ukNav(pages()->get('/blog/')->children('limit=3'), [ 'header' => 'Recent posts' ])?> </aside> category_a.php <?php namespace ProcessWire; ?> <div id='content'> <?php echo ukHeading1(page()->title, 'divider'); $posts = pages()->get('/blog/')->children("categories_a=$page, limit=10"); echo ukBlogPosts($posts); ?> </div> <aside id='sidebar'> <?php $categories_a = page()->parent->children(); echo ukNav($categories_a); ?> </aside> _main.php (Add new category to the navbar) <?=ukNavbarNav($home->and($home->children), [ 'dropdown' => [ 'basic-page', 'categories', 'categories_a' ] ])?> ready.php added a new hook for the categories_a category_a templates. Thats it. Thanks for the great Uikit theme.
  13. Did anyone try to add another template for different "categories". I added the "categories_a" and "category_a" is the child template. This new category is also a "page reference" field. If anyone did a similar test, what did you change in "_uikit.php" and other files "ready.php".
×
×
  • Create New...