-
Recently Browsing 0 members
No registered users viewing this page.
-
Similar Content
-
By RicknRoller
In the Doc it says:
I have an options field (options_colors) configured like this:
I want to have a query returning only pages with the VALUE 'red'. This is a query that works:
$newsentries = $pages->find('template=news-entry,options_colors=number1,sort=-created,limit=16'); this is a query which does not work
$newsentries = $pages->find('template=news-entry,options_colors=red,sort=-created,limit=16'); How do I query for 'red' instead of the title for the value?
-
By louisstephens
Does anyone know how to change the title of a select options to lower case? Right now, I have 3 options: "Management, Editor, Guest" (titles are uppercase in the backend), and I would like to change them to lower case in my template as I am adding them as a class name to span tags, ie "<span class="management"></span>".
I will note, that I am using $level->title (the options) in a nested foreach loop, if this changes anything. Also, I thought I could use strtolower(), but it is just being "echo'd" in the source code.
-
By rolspace.net
Hi Guys,
Just finished a website locally and wanted to upload it on the webserver of my customer. I got a server 500 error. Now, the guidelines of the hoster (world4you.com) does not allow "Options" in the htaccess-file. So, when I uncomment these:
Options -Indexes
Options +FollowSymLinks
the site is visible, but the content won't show and no links are available. Not sure if I need the Symlinks-part but I guess I need a workaround for the Index-part. Can anybody help here? I need the website up and running asap....
Thanks!
Roli
-
By jploch
Hi!
this should be easy, but I can't get it to work.
I have a repeater with events.
Every event has an option-field with multiple checkboxes.
To filter the events on the frontend I have a script, that uses the class names to filter the results (an event can have multiple categories).
Now I just want to add every checked option (title) to use as my class name.
This is what I have so far, wich only gets the first title.
foreach($page->events as $event) { $tags = $event->options->title; echo "<div class='size1of2 {$tags}'>"; echo "<img src='{$event->image->url}'>"; echo "{$event->text_editor}"; echo "</div>"; }
I know there is an example with a foreach, but how would I use it in this context?
foreach($page->countries as $country) { echo "<li>$country->title</li>"; }
-
By pppws
hey there,
i'm using processwire for the first time, so maybe it's a dumb question. but i'm trying to have an options field which values are the users of the processwire. i don't need the values to be displayed, it's just for the administration of the page. but each time a new user is created / a user is deleted the options field should be updated automatically. is something like that possible?
-