-
Posts
4,296 -
Joined
-
Last visited
-
Days Won
79
Everything posted by diogo
-
This won't work because the $page variable will always be set. If you want to test for the existence of segments, this will be enough if($input->urlSegment1)
-
@geniestreiche I really didn't try a lot of contao. I only had a very superficial look at the demo page. I'm not trying to put contao down here, but at the first sight, I have no doubt that someone that is faced with all those icons will be very confused. I must agree with Ryan that words are much more friendly for this kind of things.
-
I always forget that I can combine roles! I'm working on it but still no luck, I created a role "sort" and gave it permission to sort children but not to edit the page, than I went the user and added the "sort" role to it. Than I went to the parent template but I can't do much there. For the "sort" role I have the "view" checked and I can't check anything else, and it doesn't make any difference. I will play a bit with users and roles when I have some time to spend on it. I didn't do it before because I never had a real need.
-
Hi, and welcome to the forums! You're right, the limit selector can be used like this: $images = $page->images->find("limit=6");
-
I want a user to be able to change the order of children without being able to edit the parent page. This is the scenario I have parent: | view pages ⊠ | edit pages ◻ | create pages ◻ | add children ⊠ | children: | view pages ⊠ | edit pages ⊠ | create pages ⊠ | add children ◻ | The user is able to move the children if I give him permission to edit the parent, wish can is inconvenient if you need that page unchanged. Not a serious problem in this particular case, but shouldn't this behaviour be changed?
-
Wait, under 625px something terrible happens to the picture of the homepage. can't you just hide the right part of the image instead of distorting it?
-
I love this one!!
-
Nice site Argen! Kerning on the Raleway font doesn't seem good though, I read OVER MU instead of OVER MIJ. I would give it some letter-spacing http://www.w3schools.com/cssref/playit.asp?filename=playcss_letter-spacing&preval=3px
-
it's great
- 9 replies
-
- sql
- injections
-
(and 1 more)
Tagged with:
-
Does this help? http://processwire.com/talk/topic/1383-reciprocal-data/
-
Sorry Ryan, I understood how this works wrong.
- 9 replies
-
- sql
- injections
-
(and 1 more)
Tagged with:
-
Why do you need that? can't you keep only the necessary info to build the array?
-
Two more things: Do you know the cheatsheet? It's an invaluable resourse, all these things are there http://processwire.com/api/cheatsheet/ Concerning your code, you can do the same like this: if(file_exists($latestNewsletter->filename)) { echo "<a href='{$latestNewsletter->url}'>text</a>"; } All depends on each one's style, and it's perfectly ok, but I think this one is cleaner.
-
I edited the previous answer, here goes again in case you didn't see $latestNewsletter->filename
-
What is $latestNewsletter exactly? edit: sorry, wrong informaton. try this instead: $latestNewsletter->filename
-
The url dosen't tell the server where the file is. You have to use path. Edit: I wasn't explicit. When I mean path, I'm talking about the path on the server. You can use $latestNewsletter->path, when $latestNewsletter refers to a file.
-
How bad can it be to sanitize all user input? It's a good habit anyway... And apparently, in CakePHP you also have to be aware of when the system is not protecting you http://stackoverflow...tion-in-cakephp
- 9 replies
-
- sql
- injections
-
(and 1 more)
Tagged with:
-
PW gives you the tools to prevent it, but it won't prevent it for you. Make sure you sanitize all user input http://processwire.com/api/variables/sanitizer/
- 9 replies
-
- sql
- injections
-
(and 1 more)
Tagged with:
-
Would be nice to have the number of people that are in the channel like on the ip.board chat, but I don't know if this module does that honestly...
-
As anyone used MooTools? I like jQuery but this looks very interesting: var Animal = new Class({ initialize: function(age){ this.age = age; } }); var Cat = new Class({ Extends: Animal, initialize: function(name, age){ this.parent(age); // calls initalize method of Animal class this.name = name; } }); var myCat = new Cat('Micia', 20); alert(myCat.name); // alerts 'Micia'. alert(myCat.age); // alerts 20.
-
Maybe the chat button on the forum could be replaced by the irc channel. See this http://community.invisionpower.com/files/file/4888-irc-chat-32/
-
Edit the old template, go to "advanced>alternate template file" and put the name of the new file there
-
Not tested, but you can put this the top of the template to test the domain $_SERVER['HTTP_HOST'] and serve a different template depending on it if($_SERVER['HTTP_HOST'] == m.domain.com) { // code for mobile }else{ // normal code }