-
Posts
7,480 -
Joined
-
Last visited
-
Days Won
146
Everything posted by kongondo
-
Hide pages/branches of the page tree for users with certain roles.
kongondo replied to netcarver's topic in General Support
I recall this conversation here: https://processwire.com/talk/topic/1176-hiding-uneditable-pages-from-users/ Scroll down for the solution - See posts #7, 13-30 -
Hiding a container folder inside Breadcrumbs nav?
kongondo replied to PhotoWebMax's topic in API & Templates
div class='breadcrumbs'><!-- breadcrumbs --> <?php // breadcrumbs are the current page's parents foreach($page->parents() as $item) { //skip SideBarPages using id of the page. //You can also use $item->id=='1234' $item->title=='titleOfSideBarPages, $item->name, etc //using the ID, though less readable, is more foolproof if ($item=='1234') continue; echo "<span><a href='$item->url'>$item->title</a></span> "; } // optionally output the current page as the last item echo "<span>$page->title</span> "; ?> </div><!-- end breadcrumbs --> -
Glad you sorted it! However, RE PHP and the use of double versus single quotes, the below is not true. You can use either quotes with certain caveats. More info here: http://php.net/manual/en/language.types.string.php http://stackoverflow.com/questions/3446216/what-is-the-difference-between-single-quoted-and-double-quoted-strings-in-php
- 17 replies
-
- 1
-
- PrettPhoto
- Lightbox
-
(and 1 more)
Tagged with:
-
How to get the index number of a page with siblings?
kongondo replied to kixe's topic in General Support
These are similarly useful WireArray: http://processwire.com/api/arrays/ PageArray: http://processwire.com/api/arrays/page/ -
@Philipp - you forgot the img tags
-
Hi Dave, Welcome to PW and the forums... Glad you sorted it out but would like to suggest you do it differently...assuming I understood the question correctly... If all you want is to grab one random image from a coupon page, there is probably no need to find several pages first. Why not grab ONE random page instead (one containing your coupon images) and display its coupon image? Assuming that a coupon page contains other images as well but you are only interested in the coupon image (i.e. tagged 'coupon'), something like this maybe... //we only get one random coupon page (we use 'get' rather than 'find') $couponimage = $pages->get("template=service-pages, sort=random")->images->getTag('coupon'); Edit: This code assumes there will always be a coupon image in those service pages.
-
@Matt, That _notes folder in your screenshot is new to me. Is that a custom folder you created? What's in it? Below are the 31 items that should be in /wire/modules/Inputfield/ folder:
-
I have confirmed that the 'missing' file is in the zip file at the download link you have stated. Your unzipping must have gone wrong. I would start the unzipping all over (maybe using a different unzip programme ) in case other files are 'missing' too. Edit: Oh, how rude of me. Matt, welcome to ProcessWire and the forums! Sorry for the bad start
-
Matt, You are probably missing some ProcessWire files such as /wire/modules/Inputfield/InputfieldSelectMultiple.module. What version of PW is this? Did you download the PW zip? Ensure the unzipping went OK Edit: Beaten by Horst...
-
Yes. But it would also be worthwhile to first check if a similar issue has not yet been submitted. Welcome to the forums too
-
Glad you got it sorted. Now that I think about it, this nesting level issue has come up before in respect of installing Blog. MarkupBlog docs are on my site here: I will need to update them soon with the latest changes as shown on post #207 and #244 here in the forums which you might want to read as well.
-
Gallery: A photo album module (preview)
kongondo replied to kongondo's topic in Module/Plugin Development
Yes...Nothing this side of 2014 I am afraid. ETA February/March 2015 at the earliest... -
Your question is rather generic What exactly are we supposed to be looking at at the address you have provided? What exactly does "it doesn't appear correctly in Firefox" mean? How is it supposed to appear and what is "it"? Show us some code. E.g. How are you calling your images?
- 17 replies
-
- PrettPhoto
- Lightbox
-
(and 1 more)
Tagged with:
-
@Hafa, I suggest you first rule out if MAMP/OpenSSL is the issue. I don't use MAMP myself so I don't know how to enable OpenSSL. Maybe others will chime in but meanwhile you can find out. Can you also confirm you are running the required PHP version? Additionally, to rule out the problem of your environment, you can test your site in lightning.pw....(when it's back online )
-
Well that's strange. Can you please confirm: That you run the 'Cleanup' wizard before uninstalling the module itself? That after uninstall you do not have a field called blog_categories in your install/DB? That the uninstaller finished running - i.e. it did not hang and not complete? Your PW version?
-
Actually I PM'ed you about the 'problem' on 5 November . Found out about Blog docs only yesterday?! I need to up my game!
-
@Gazley, Thanks for trying out Blog. Nothing much to add to what Adrian has said. I can tell that you are using Blog version 2.x.x. As the error shows, it seems you installed Blog, then uninstalled it without first 'cleaning up', then tried to install it again. That's the only way that error could occur based on your explanation... Let us know if we can help further..
-
@Peter, The select box is coming from the 4th argument of renderNav() $mobile. The default value is 'true'. Used in conjunction with CSS @media queries, the select box provides an easier navigation of your Blog for mobile devices. If you wish not to use it, just set $mobile=false. See below: renderNav() tutorial - I'll need to update this to be more explicit about this feature.. renderNav() code use with media queries example in blog.css demo file
-
Images (or other stuff) with 'if elsif else' logic
kongondo replied to BFD Calendar's topic in General Support
The link was meant to point you to more info . No problem with asking (especially if you've already attempted to solve the problem) . Is your question resolved then? -
Images (or other stuff) with 'if elsif else' logic
kongondo replied to BFD Calendar's topic in General Support
Use count() to check if images present in a multiple images field...http://processwire.com/api/fieldtypes/images/ (it's an array). Otherwise it always returns true.. if(count($page->bfd_people_picture)) -
@Andi, I am not sure I get your question but I think you mean in the modules list PW is listing Blog as 2.2.2 despite having updated to 2.3.0? Maybe PW's module cache didn't clear. In that case, hit the refresh button in PW Module list page. Otherwise, check the other module files, they should all be version 2.3.0.
-
It's all here: http://processwire.com/api/variables/config/ $config->urls->abc return http paths; $config->paths->abc return absolute ones
-
This $dir = $config->paths->site . 'templates' . '/' . 'bxsliderpics'; Can be changed to this $dir = $config->paths->templates . 'bxsliderpics';
-
<ot>Now that's unfair...I have given you 2 likes in the space of 30 minutes; one for 'being wrong' (which is rare in itself) and one for 'laughing' </ot>