-
Posts
4,314 -
Joined
-
Last visited
-
Days Won
80
Everything posted by diogo
-
Soma, you should think of changing your avatar, you're giving the wrong impression like this
-
I would agree with this if the jQuery inspiration wouldn't be advertised on PW's homepage. In jQuery, something like parent($selector), would mean that you are selecting only $selector from all the results returned by parent(). This could bring some confusion to jQuery users starting with PW. I noticed that parents() works on PW to get all the ancestors of a page. I would say parents($selector) makes all the sense.
-
Just found this website though Ethan Markotte's twitter and I think would be nice to put PW there. I really don't have much time right now because I'm on my way to visit one of the nicest markets in Paris but would be nice if someone could do it. http://toolbe.lt
-
I'm not sure about the usefulness of this. I assume that on this kind of software people look for all the information on the website. These starting pages can get pretty annoying for someone that has to make lots of installs
-
Wow, I've been missing some great discussions during my vacations
-
You can embed the youtube videos using this jquery plugin http://tikku.com/jqu...beplayer-plugin. It will give you lots of freedom, like defining your own button for the controls.
-
Marion, I think this is actually a great idea! There were already people saying that they wanted to put a link to PW on their website, but the client asked not to. I don't think any client would oppose to have this reference on the source code
-
No prob My fault also, I will put the title on the link, like you did.
-
Very nice post from Barry ProcessWire, my new favorite CMS in the whole wide world!
-
Sorry, I misunderstood your question. It's happening a lot lately... edit: Have a look at http://modules.processwire.com/modules/fieldtype-color-picker/ as an example of a field type module that includes some js and css on the admin.
-
Hi ijsga, welcome to the forum! If you know how to do it easily in javascript, just use a normal text field to get the url, and do all the work on the templates. I think it will be easier and cleaner
-
Second click has to be a bit for the right
-
true, sorry for those things. i will correct them on my code for reference
-
you just have to assign the page object to the field. //assuming that the video page was created before this foreach ($tags as $tag){ // get the corresponding tag page $tagPage = $pages->get("template=tags, title=$tag"); // if the page doesn't exist, create it if(!$tagPage->id){ $tagPage = new Page(); $tagPage->template = $templates->get("tag"); $tagPage->parent = $pages->get("/tags/"); $tagPage->title = $tag; $tagPage->save(); } // assign the tag page to the video page $videoPage->of(false); $videoPage->tags = $tagPage; $videoPage->save(); } Voilá! Didn't test this, but should work Edit: corrected the code according to what was said in the next two posts
-
Getting current template name - Adminbar bug?
diogo replied to thetuningspoon's topic in General Support
try $page->template instead of $page->template->name -
Actually I meant the normal use for repeaters... disregard that. I tried the module. it seems to work fine
-
Ryan, I think he wants the first, and THAT would be a great addition to pw It would also work with repeaters?
-
This is funny. This question is completely related with the previous thread http://processwire.com/talk/topic/1560-searching-multiple-fieldtypes/
-
You are aware that "get" will only give you the first referenced page? In the search wouldn't work an array anyway, but because the variable is in plural, i get the feeling that you want something different. edit: I was sleeping when I wrote that... you can use a page array on the selector, and you are using a "find" right after the "get" No more reading PW forum on the mobile! Still you don't really need to do it in two steps, because this would be enough: $my_referenced_pages = $pages->find("title%=$query, parent=/referenced-pages/"); As for your question: I don't know how to combine them with one query, but with slkwrm's solution you wouldn't have the pages sorted exactly as you want.
-
Try this, at least you will be able to login immediately <?php $users->get("admin")->setOutputFormatting(false)->set('pass', 'yo123')->save(); taken from here http://processwire.com/talk/topic/490-how-to-reset-your-password-how-to-enable-the-forgot-password-function/
-
Module: Video embed for YouTube/Vimeo (TextformatterVideoEmbed)
diogo replied to ryan's topic in Modules/Plugins
Adam, you don't need to like yourself i can give you a like -
Looks like a nice idea for a module. I agree that in some sites it can make the tree more readable to some clients. Not the same thing, but there is a module from Soma that you might like http://modules.proce...st-image-label/ The backend doesn't work exactly the same way as the frontend, particularly the processes, but can still use the API functions.This is possible for sure. edit: Soma, sorry for the double answer I still don't understand why sometimes the system doesn't alert that there is a new answer...
-
Welcome to PW and the forums! You came to the right place to learn PHP 1. This is possible, and not difficult at all. Have a look at this module http://modules.proce...es/ajax-search/ 2. Yes, see here how you can build a tags system http://processwire.c.../page__hl__tags 3. It's possible without any "core hacking", But it will imply some "module hacking" we are here to help though. 4. There are ways to convert csv files into php arrays. From there, everything is possible. You will have to configure your server to pipe the emails to PHP https://www.google.c...iw=1364&bih=679 5. The skyscrapers profile was not updated to the last version of PW. But I'm sure Ryan can send it to you if you want a lot 6. I did a very basic newsletter system that is explained here http://processwire.c..._hl__newsletter. For something more complex, you should try Mailchimp or something similar. This forum is integrated in PW, but i think sharing logins could be tricky.