-
Posts
4,296 -
Joined
-
Last visited
-
Days Won
79
Everything posted by diogo
-
You can also do if($pages->get("/contract/")->id){ // exists }
-
If you want something more Tumblr like, there is http://chyrp.net/ It's in PHP.
-
And I watched the game with my girlfriend who is German Lot's of world cup ahead still
-
Thanks for the input and welcome
-
Nikola, I got an error to undefined function iconv() in my Ampps install. This is a native PHP function and I easily solved the problem by installing the iconv extension, but thought you should be aware of this since it's not being used on something critical and you could maybe use another approach or check if the extension is installed and alert for it in the theme settings that are affected by it. The functions where iconv() is being used are renderDate() and renderPageStatus() in the helpers file.
-
Prepare for the Dutch, they will invade this again when they recover from the celebrations...
-
Aesthetics is something subjective, some people will like the changes, some won't. Some people like the new mac laptops, other people would prefer that they would still be like this: Actually I like both, I remember I loved those laptops at the time. What I never ever liked was this: or this: or this: And I'm oh so happy to see them go away!
-
Menu / Navigation toggle and show children on mouseover
diogo replied to Bacelo's topic in General Support
Might work, but your markup is not correct, since you have something outside the <li> tag in a <ul>. <ul> <li> <a></a> </li> <ul> ... </ul> ... </ul> not good. My code with a very small change: http://jsfiddle.net/dXxtD/9/- 13 replies
-
- 3
-
- Menu
- Navigation
-
(and 2 more)
Tagged with:
-
Well, you do need a url where to run the code, and in pw urls are pages. I don't think it's strange to create a page hidden in the admin for this.
-
Menu / Navigation toggle and show children on mouseover
diogo replied to Bacelo's topic in General Support
You have some problems with your html, you should clean all the useless classes and ids. the #sub id is even repeated, and ids should be unique in a page. Is this what you want to do? http://jsfiddle.net/dXxtD/1/ I kept the html as clean as it could be, but you don't have to go to that extreme- 13 replies
-
- 6
-
- Menu
- Navigation
-
(and 2 more)
Tagged with:
-
You can even get the product that has the biggest size of all $pages->find("template=product,sort=-size,limit=1")->first();
-
The gui way could be the maps module by Ryan. Make a page per location, and then you can pull the coordinates from every page and add them all to the footer map with the maps api. There are some Jquery plugins that make it easier to work with the api. Gmaps.js is a good option http://hpneo.github.io/gmaps/
-
True, still not, but according to this tweet https://twitter.com/processwire/status/459005804516241410 it will be very soon But anyway, lister would be only one way of doing it. You can create a custom page that lists all the articles very easily, or you can also create an admin page with a tree that only displays the parent that you want for example https://processwire.com/talk/topic/6520-pagetree-as-a-markup-module/?p=63831. You can create these under different parents and link to them with page fields. Kongondo wrote a great guide on categorising content in PW https://processwire.com/talk/topic/3579-tutorial-approaches-to-categorising-site-content/.
-
Definitely pages. You can have one template for each kind of object, or even one template for all of them and use checkboxes and field dependencies to show only the needed fields. If you don't like to have them on the pages tree you can create a custom admin page, or even use the lister module, to list only the entries.
-
No, I'm from Portugal but am frequently in Frankfurt. Sorry for hijacking the Berlin thread
-
I know a nice café/bookstore in Moabit
-
Max number of pages before switching to custom tables?
diogo replied to joer80's topic in Getting Started
Images are stored in a folder associated with one page. -
You can use RSS to push things to IFFFT on the phone already
-
Max number of pages before switching to custom tables?
diogo replied to joer80's topic in Getting Started
Your answer is much better. I don't think those threads mention the changes on the dev version -
Max number of pages before switching to custom tables?
diogo replied to joer80's topic in Getting Started
Welcome to the forum joer! I found these to threads that may be useful to answer your question: https://processwire.com/talk/topic/2503-question-about-extreme-scale-hundred-of-thousand-maybe-millions-of-pages/ https://processwire.com/talk/topic/4349-thousands-of-pages-one-site-with-multiple-pages-or-one-install-with-multiple-sites/ -
I prefer Martijn's suggestion, Frankfurt would be even better for me The trains are too expensive in Germany and I'm always scared with car sharing.
-
How do we emulate WordPress "post author selection" in Processwire?
diogo replied to Zahari M.'s topic in API & Templates
Since you are creating a user for each author, you can simply use a page reference field for this. If a user is selected on that field, that's the one considered the author, if there is no user selected it's assumed that the author is the user that was logged when posted. $author = $page->get('author|createdUser'); //if chosen "Single page (Page) or boolean false when none selected" on the field settings Of course not all authors have to be users. You could also have a "author" template, and create all authors there. In that case you could do something like: $author = $page->author ? $page->author : $pages->get("template=author, name={$page->author->name}"); edit: none of those were tested, i just want to illustrate a concept -
Looks great! You may also consider using Hanna code instead of the image tags module since it opens other possibilities. I explained how here https://processwire.com/talk/topic/1182-module-image-tags/?p=40015 and will update the module's readme with it.
-
I understand all concerns around security of unmanaged VPS and am aware of how limited my knowledge in this area is comparing to other people, but what else do you have to do concerning security that is not on this Linode guide? https://library.linode.com/securing-your-server If what is on that guide is enough for starting, then I would say that there's no really overhead on having an unmanaged VPS and can highly recommend Linode. They have a datacenter in the UK, their guides are very interesting and easy to follow and the prices are just great. edit: I know it has been said before, but c'mon pwired, this is not something you should be telling people to do. Someone less knowledgeable might just go for it...
-
I was all the time waiting for posting only some seconds before you