Jump to content

biotech

Members
  • Posts

    57
  • Joined

  • Last visited

Posts posted by biotech

  1. Hi Kongondo,

    Thanks, the "blog/categories/" template makes sense when listing categories over all, my goal above was to generate something short and simple for a side bar listing - your snipped was exactly what I was after, thank you!

  2. Hi Kongondo,

    Thanks for this massive module! I've been away from PW for a while and finding this was a true gem.

    How would we render just the Categories list with page count next to it without actual blog entries? Similar to /blog/categories/

    I have tried setting the limit without much change:

    $blog = $modules->get('MarkupBlog');
    
    //number of posts to list per category
    $limit = 0;
    
    //get the categories page. 
    $categories = $pages->get('/blog/categories/');
    
    //Render list of categories showing a maximum of 0 posts titles per category
    //children = the individual category pages
    echo $blog->renderCategories($categories->children, $limit);

    I could not see many parameters or examples in the docs.

    Thanks so much!

     

    Using  ProcessWire 3.0.98 and Blog Module 2.4.2

  3. On 8/9/2018 at 5:53 AM, BFD Calendar said:

    Thanks zoeck and Peter. Leaflet also uses Google, so I presume you'll run in the same problem sooner or later, no? For the Here maps, I assume it needs a bit of working under the hood of MapMarker to get it working?

    In the mean time it turns out everything now works after 48 hours of patience with Google and my provider (OVH)....

    So what was the fix for MapMarker? Where would we add the API key in PW?

    Thanks!

    • Like 1
  4. On 12/12/2016 at 4:13 PM, Gideon So said:

    The .htaccess file come with ProcessWire should work out of the box.

    The only reason I can think of is that the web server doesn't allow you to override it's default setting values.

    Do you have access right to the web server config??

     

     

     

    Thanks for the tip!

    Turns out my host had to add https URLs to the list of allowed URLs for Hotlink protection option. All is good now! 

    • Like 1
  5. Hello community,

    This is the first time I have enabled SSL with PW powered site so forgive the question.

    Templates are set to HTTP or HTTP so content is being processed. However all the assets do not load correctly eg.

    Failed to load resource: the server responded with a status of 404 (Page Not Found)
    
    https://site.com/site/assets/files/1/logo.png 

     

    Any tips?

    Thank you!

  6. Correct.

    If I enter just the plain txt say word "test" all is good, I enter just "<script>" tag itself then on save of the page I am redirected/shown content of my sites 404 page but url remains on http://site.com/processwire/page/edit/?id=1. I can still edit the page just need to reload the page and the old value is still in the field.

    This is new just migrated/gone live site. Naturally, placing the GA snip inside the '/site/templates/scripts' or whatever then calling it in template works just doesn't leave it 'manageable' via field.

    Thank you.

  7. Hi Adrian,

    Yes using "unknown", regular textarea (not using CkEditor) and when I save the page I get the 404 page displayed while the actual URL still sits on site.com/processwire/page/edit/?id=1 being my 'home' page. Using PW 2.6 if it matters.

    If I enter just plain text it saves ok but not the GA including <script> tags and all.

    Thanks for the time.

  8. Hello PW people,

    It has been a while...quite a while since I used PW so forgive me for this newbie question. I know that we can easily paste the GA code into the template but I thought to be slick and use field to store the whole JS script. After setting the textarea field to be content type 'none' and saving a page values don't get saved.

    Something I need to change on the template processing side? Is this by design so that JS (and CSS and other code snips for that matter) don't get processed?

    Thank you.

  9. Welcome Leo,

    The link you posted is a tutorial if you want to make something from scratch.

    Using what you get with this profile you could make a new page under Home > and call it say "Gallery" and then based on this you can decide what look/template of that page you want ( 'basic' or 'basic w sidebar').

    Then you can use Body field to put your images (add image first via image field) using the editor or maybe even better use the 'On Page Blocks' to add image w maybe description to go along. This way you could create a look similar to blog postings.

    ............ [ image ]

    [ image ] ............

    ............ [ image ]

    [ image ] ............

    This, of course, is the simplest form of 'gallery' without any slideshows and thumbnail approach.

    • Like 1
  10. Is there a way to add 'home' page in the navigation (top/bottom)?

    My hack is to edit "_navigation.inc"

    ...
      
     $page = wire('page');
        $out = '';
    
    $out ='<li><a href="/myroot/" title="Home">Home</a></li>'; // hardcoded link to 'Home'
        
        foreach($items as $item) {
    ....
    

    But I am sure there is a better way as well as to inlude the css active state.

    Thanks so much.

  11. Hi Gayan,

    Found a few more bugs, not sure if this is due to bootstrap framework, is that

    - if you use 'On page block' with an image and then disable css images are rendered twice on the page. Not ideal for accessibility.

    - 'Feature/Service set' ignores re-ordering of pages and it seems to sort by page ID

    - Removing 'Reference' = deleting or unpublishing each entry seems the be the only way to 'hide' them as they are not a Common block. Leftover css leaves padding.

    - On 'Contact Us' page leaving Sub title for google map empty still outputs default txt of "Find us on Google Maps". Edited on 'google-map.inc' but still 2 column layout is imposed if map is not desired.

    Another thought for 'SEO fields' mentioned above, we could use Home page 'SEO title' to hold starting value eg. "Our Website | " and then append the current page title (or SEO field if not empty) resulting in "Our Website | Contact us".

    HTH

    All the best.

  12. Hi Gayan,

    Happy to provide feedback and thanks for a quick reply. While at it, I noticed some css play is off. If you create a new 'Common page block' (like Contact us banner) the link in the content does not get wrapped with the same attribues.

    eg. "Contact us banner"

    <a class="btn btn-default btn-lg" href="/contact-us/">Contact us <em class="fa fa-fw fa-angle-right"></em></a>
    

    eg. "Some new banner"

    <a href="/sandbox/pw/page/">Go to my page</a>
    

    Both are using same template of 'Common page block' and source code is the same in the body field and 'Render Image as a background' option is used.

    All the best.

    • Like 1
  13. Hello Gayan,

    Thank you for sharing this profile! I have been away from PW for a while and it was nice surprise to see the community thriving and all the improvements over the revisions. One of the aspects that PW lacked was 'themes' to get the end users to start blogging and publishing content right away.

    I know this sample profile is geared towards developers and admins but if I may suggest different naming of Pages. Honestly, I had to look up 'hero unit'...never came a cross this concept in any language but I guess design and development are merging in web world.

    Anyhow, here is what I would suggest for Tools pages:
    post-435-0-02857900-1439763674_thumb.jpg

    - It would be nice if 'Featured Content' could trim and pull field(s) from existing content like other Pages rather then static entries on their own but it works well for this scope.

    - 'Storage & settings' for SEO is bit misleading as well, maybe just 'SEO and Page Blocks' since there is not much 'storage' per say?

    - SEO fields = if left empty they do not use the 'Title' and 'Description' of the current page but rather what is specified on 'Home' page. Wording is little misleading and will cause every page to be presented as the same. While handy, IMHO, every page should pull its own SEO even if only from 'title' and 'body' fileds of the current page.

    - Top drop-down menu seems a bit redundant where Parent page is listed twice. Any suggestions?

    post-435-0-06321800-1439763148_thumb.jpg

    I have only spent an afternoon working with this profile and it absolutely fantastic. If fact, it will be the core of what I use for my next project.

    Thanks for your time.

    All the best.

    • Like 1
  14. That is what I have been trying to do but this is not possible in 'posts.php' since everything is later produced (in main.inc) by a single variable of "$content". So I could not find a way how to place opening and closing <div> tags in this file...and I agree :) don't really want to split them either.

    Thanks again for the help, editing blog.inc did the trick.

  15. Though if you are just trying to wrap the pagination with a div, then you could also just wrap the output that it returns to you. 

    Almost there...had to place the opening <div> tag into 'templates\markup\posts.php' and closing into the 'main.inc'. 

    ...
    echo $content;
    ?>
    </div> 

    However, this area gets populated with Comments and 'next-prev-posts' when single post is viewed so I can't really use it to control the positioning of the pager navigation...

    As far as the API documentation I don't see how the examples are being used in the blog profile. Example #2 is the control I am after.

    Thanks again.

  16. Hello everyone,

    I am trying to wrap a bottom navigation bar with a div element (the MarkupPagerNav) and after some digging I realized that this was a module rather than a template. Is there a better approach to doing this than editing the 'MarkupPagerNav.module' file itself?

    Thank you.

×
×
  • Create New...