-
Posts
4,296 -
Joined
-
Last visited
-
Days Won
79
Everything posted by diogo
-
It seems to work now. The "Hero" word above your photo suits you well
-
That's scientific enough for me
-
I can confirm this. Just reproduced it. All the repeater fields that were created while the page was "saved + kept unpublished" stopped being outputted to the page after i finally published it, although they still appear in the admin side.
-
How can I turn off the default descriptions of URL and email fieldtypes?
diogo replied to vknt's topic in General Support
Hm, I think there is no way of doing this. Quick fix would be putting descriptions on all the others. You can do it on a template basis. -
You want all of them? Male and female? You could put another foreach inside the one you have, but would be more practical to give those pages the same template and call them by it: $pages->find("template=people")
-
You don't have a scientific spirit
-
Antii, that scenario works perfectly. Only A inside A gives strange results... as expected
-
Ideas for a dashboard / widget system?
diogo replied to MadeMyDay's topic in Module/Plugin Development
Not a nice answer... I also don't like that some CMS's have an over complicated landing page, but I don't think that this will turn PW in one of those. -
Welcome to forum Jeff! You certainly could do this, and I don't see any inconvenient besides loosing the possibility of using the language feature itself. I think I would prefer to create special mobile fields for each field that needs a different content instead, but I understand that your plan can be more practical. Maybe it would make sense to create a new module, based on the language module, to create this functionality without interfering with languages.
-
Ok, i did it I put a repeater inside itself just to see what would happen, and the result is not pretty. As soon as you create a page with it, it creates a big number of repeater pages and breaks the system. It would be better if PW would just disallow this.
-
Ok, so lets wait for Ryan to see this edit: I only saw this answer now. Ya, must be a bug.
-
can you create a new template with this repeater field to see it it works there?
-
Definitely not what I thought. You are outputting them correctly, but I can't reproduce your error with the same code in my testing environment. Are you using last version of PW?
-
can you paste the code your using to call the fields? sounds like you are calling the hidden repeater field pages directly instead of the fields themtself.
-
Hm, it's true... it doesn't. There is a browser extension that does. I use it on gmail also and it's good: http://www.afterthedeadline.com/ it disables formatting while checking, but it's recovered when the spellchecking is finished edit: apparently there's even a version for tinymce! http://www.afterthed...latform=TinyMCE
-
don't all the browsers have spellchecking now?
-
The toSlug function that I used in the other thread came from a google search... I don't remember from where exactly. It's still that one that is being used, right? It would definitely be better to use the same method that is used by PW. edit: Have to go to bed, this dawn I will fly to the land of the Umlauts and Eszetts
-
Not yet, but I suggest that you start a new thread specifically for this module in the Modules section of the forum. Since Ryan liked your post we can be confident that it will get listed once it's finished edit: on the modules section, maybe you could attach the module file to the post to make it easier to install
-
Good work! Again, I like the site and the artist's work two things I would change: I would definitely remove the links from the separator thumbnails "other styles"/"visuals&storyboards"/etc... I would, somehow, give a clue that the SHOP link goes away from the site.
-
Ah that's how! I updated my code with this.
-
you mean an array with all the quotes? Not with a PW method, i think... you would have to loop through all the pages and through the repeater in each page, and then join the arrays. $allQuotes = array(); foreach($pages->find("employee_quotes.employee_quote!=") as $p){ $theseQuotes = $p->employee_quotes; $allQuotes = array_merge($allQuotes, $theseQuotes); } This should work. (it doesn't) edit: to echo all the quotes: foreach($allQuotes as $q) { echo "<blockquote>{$q->employee_quote}</blockquote>"; } edit2: wait, this doesn't work edit3: This does work: $allQuotes = new PageArray() // thanks to soma for this foreach($pages->find("employee_quotes.employee_quote!=") as $p){ $theseQuotes = $p->employee_quotes; $allQuotes = $allQuotes->import($theseQuotes); } foreach($allQuotes as $q) { echo "<blockquote>{$q->employee_quote}</blockquote>"; }
-
Ah, sorry! it stays for reference It grabs the pages. pages->find() always returns an array of pages.
-
// this returns the first page with Johnson included in the title (I'm not sure why you do it like this, why don't you just $pages->get("name = johnson") it? $johnsonPage = $pages->find("template=employee, title~=Johnson")->first(); // this returns an array with all the elements (the quotes) of the repeater field "employee_quotes" inside the page and shuffles it's order $quoteList = $johnsonPage->employee_quotes->shuffle(); // this removes the first element from the array, and returns it $quoteList = $quoteList->shift(); // this returns the content of the field "employee_quote" that is inside of that element $employeeQuote = $quoteList->employee_quote; in resume, the code grabs a random quote from the employee named Johnson.
-
can you put this on your template to make sure it doesn't? echo $pages->find("employee_quotes.employee_quote!="); it should echo a list of page IDs this works for me echo $pages->find("repeat.email!=");
-
No, they are inside the field table, and associated to a page.