-
Posts
1,147 -
Joined
-
Last visited
-
Days Won
4
Everything posted by onjegolders
-
Thanks for the reply Wanze, I get the following: int(0) Not sure what's going on here...
-
Thanks both of you, it doesn't seem to work though with "==" either. I'm sure I've seen checkboxes with single "=" too as Pete mentions. The field is definitely called show_url so not too sure what is happening here. Is there any way to debug? Thanks.
-
Hey guys, I'm having an issue where I have a checkbox for deciding whether a link is shown to a website. I have a field to hold the url and the checkbox field. My code is: if ($page->project_url AND $page->show_url = 1) { ?> <a href="<?php echo $page->project_url; ?>" target="_blank" class="project_link flr tar">← Visit Site</a> <?php } I have also tried in parentheses: if ($page->project_url AND ($page->show_url = 1)) { ?> <a href="<?php echo $page->project_url; ?>" target="_blank" class="project_link flr tar">← Visit Site</a> <?php } The problem is, the links are displaying regardless. Any ideas what I may have done wrong? I'm still wearing my dunce's hat by the way...
-
this request was aborted because it appears to be forged
onjegolders replied to joshuag's topic in General Support
Just managed to get in by changing permissions on the assets folder to 777. Not sure how much I fancy leaving it like that but for now will have to do as putting it back down to 755 for example, I get the error message again. -
this request was aborted because it appears to be forged
onjegolders replied to joshuag's topic in General Support
I've just transferred a site from localhost to a live domain and I'm having this exact same problem. Think my permissions on config.php are fine. Can someone confirm what they should be? Thanks -
Navigation outputting even "hidden" pages
onjegolders replied to onjegolders's topic in General Support
smart play -
Out of interest, who's using Less/Sass vs plain old CSS
onjegolders replied to onjegolders's topic in Dev Talk
I've created a monster! Great to see so many people's views on this and I sort of see both sides of the argument. I've never not enjoyed writing pure CSS but think I can definitely see benefits of something like SASS. For what it's worth, I would definitely be put off if it were pure command line but an app like CodeKit looks highly promising. -
Good stuff, am also operating a couple of sites with PW and Bootstrap, as easy as linking to the css and js files.
-
What problems you found when moving from EE
onjegolders replied to onjegolders's topic in Getting Started
Good luck, you'll find a lot of similarities, but also some nice differences. Just post in here if you come unstuck. -
Thanks buddy.
-
Gotcha, thanks.
-
Migrated site now some pages are redirecting to homepage
onjegolders replied to onjegolders's topic in General Support
Sorry Ryan I didn't see this reply until now! As is so often the way I ended up having to move quickly onto a new project, so will have to check back the other one as once I'm off something for a few days, I completely lose the plot as to what was wrong in the first place! I'll PM you as soon as I figure it out, thanks! -
Out of interest, who's using Less/Sass vs plain old CSS
onjegolders replied to onjegolders's topic in Dev Talk
Great replies guys, most articles I read about them seem to think that Sass was the forward-thinking one of the two because of Compass and just better all round. Do you not share that opinion or is just that Sass is much more hassle to use? -
Navigation outputting even "hidden" pages
onjegolders replied to onjegolders's topic in General Support
Bingo! A genius idea that I may well implement. -
Navigation outputting even "hidden" pages
onjegolders replied to onjegolders's topic in General Support
Thanks mate, though the problem was my brain, so not sure I can claim it's been 'solved'! -
Navigation outputting even "hidden" pages
onjegolders replied to onjegolders's topic in General Support
Thanks Dave though your mistake wasn't that bad! It certainly didn't involve you have two instances of the same site admin open (one live and one localhost), making changes to localhost and wondering why the live version's menu wasn't updating properly! Then getting all those lovely helpful people on the Processwire forums to scratch their heads over it! Sincere apologies -
Navigation outputting even "hidden" pages
onjegolders replied to onjegolders's topic in General Support
I am so so so so so sorry... Is there a dunce's hat to wear as I will gladly put it on now and wear it for a week or two. Needless to say it was my stupid error, can anyone guess what it was? (perhaps I should make this into a poll so everyone can have a chuckle at how stupid I am!) -
Navigation outputting even "hidden" pages
onjegolders replied to onjegolders's topic in General Support
Thanks Pete, Apeisa. I've tried every one of those things and still same issue. Really strange. The repair all had status as "OK", presume that means all is well? -
Navigation outputting even "hidden" pages
onjegolders replied to onjegolders's topic in General Support
I tried that code too thanks Soma and same result. I have included a screenshot of phpmyadmin as not too sure what I'm looking for. I don't have any 3rd party modules installed but the data was imported from a localhost version. I may try adding new pages and seeing what happens? EDIT: Just tried adding a new page, when I ticked "unpublished" it didn't show up on the site but then when I unchecked "unpublished" it didn't show up either! I'm confused! -
Navigation outputting even "hidden" pages
onjegolders replied to onjegolders's topic in General Support
Thanks both of you. Turns out they are all visible... A bit stumped here to be honest. Have included screenshots just to be sure I'm doing the right thing to make a page not appear in the menus! -
One of the things I've put off learning has been LESS/SASS, seeing as I've always managed ok with CSS and there's never time enough to learn every new technology is there?! Was just interested to see who used it occasionally, the whole time, never at all, waste of time, lifesaver etc... I've certainly never struggled with just CSS but that's the way with so many new things, you don't know what you're missing until you try it
-
Have to say I only really started using these frameworks when responsive design became such a game changer. It's just something that I didn't feel comfortable doing all by myself. I agree with Ryan though that sometimes debugging someone else's coded ends up being a lot more long-winded than using your own. Things like modals and form defaults are definitely a reason I've used Bootstrap on my last couple of projects. I certainly understand people's fears that these sites can all end up looking the same but I tend to only use a couple of bits and pieces from the CSS and mainly rely on the responsive grid.
-
Not sure in its integration with Processwire but it looks gorgeous
-
Navigation outputting even "hidden" pages
onjegolders replied to onjegolders's topic in General Support
I've also tested "include=hidden" and additional hidden pages are coming up so I can only assume that PW thinks that the other pages aren't set to be hidden yet in the settings they definitely are. Is there any other page/template setting that could be overriding this? Thanks As far as I'm aware, being logged out doesn't affect the navigation (if it does I'll have to hurriedly go and check all my other sites!) -
Navigation outputting even "hidden" pages
onjegolders replied to onjegolders's topic in General Support
Thanks for the suggestion Pete, no I just tried logging out but same story. Strange really, the pages are definitely "hidden" and the order is different.