-
Posts
57 -
Joined
-
Last visited
Everything posted by biotech
-
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!
-
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
-
Thanks Marcus! I was looking through the module files thinking that we manually need to update files to hold the API key, turns out that our module was out of date as well.
-
So what was the fix for MapMarker? Where would we add the API key in PW? Thanks!
-
Installed SSL cert, path to assets are now 404
biotech replied to biotech's topic in General Support
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! -
Installed SSL cert, path to assets are now 404
biotech replied to biotech's topic in General Support
Thanks, .htaccess trick works but I am back to my post title...assets/files do not load. Is there a config setting that also needs adjusting? -
Installed SSL cert, path to assets are now 404
biotech replied to biotech's topic in General Support
Hi szabesz, I don't need the entire site to be https just a segment/page. I would like to have HTTP as fallback in case SSL certs laps and expire. So at this point I could turn the entire site towards https (I see that .htaccess can be used) but I can't find how to adjust https vs. http for asset path processing. Thank you. -
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!
-
Gayan, We have launched the site built around your profile and would like to thank you again for releasing such elegant profile and design. All the best.
- 75 replies
-
- 3
-
- site profile
- responsive
-
(and 2 more)
Tagged with:
-
Content type of field to store Google Analytics code
biotech replied to biotech's topic in General Support
After talking to my host they confirmed and had to whitelist mod_sec rules. Thanks again for the pointer in the right direction. -
Content type of field to store Google Analytics code
biotech replied to biotech's topic in General Support
Yeah I tried the debug no errors, but it makes sense. This is a new host so it is very likely the issue. Thank you so much for the help! All the best. -
Content type of field to store Google Analytics code
biotech replied to biotech's topic in General Support
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. -
Content type of field to store Google Analytics code
biotech replied to biotech's topic in General Support
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. -
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.
-
Thank you for the module, works great for simple mailto under PW 2.6 as well. All the best!
-
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.
- 75 replies
-
- 1
-
- site profile
- responsive
-
(and 2 more)
Tagged with:
-
Thanks Gayan, I used the "parent=/" as a custom selector, worked great for the bottom navigation of page listings. Any workaround for the top nav?
- 75 replies
-
- site profile
- responsive
-
(and 2 more)
Tagged with:
-
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.
- 75 replies
-
- site profile
- responsive
-
(and 2 more)
Tagged with:
-
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.
- 75 replies
-
- site profile
- responsive
-
(and 2 more)
Tagged with:
-
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.
- 75 replies
-
- 1
-
- site profile
- responsive
-
(and 2 more)
Tagged with:
-
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: - 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? 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.
- 75 replies
-
- 1
-
- site profile
- responsive
-
(and 2 more)
Tagged with:
-
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.
-
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.
-
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.
-
This would be a great. Thanks to both of you.