-
Posts
4,296 -
Joined
-
Last visited
-
Days Won
79
Everything posted by diogo
-
Thanks Zahari! MyFonts has always great deals here http://www.myfonts.com/specials/. It's a great page to check out from time to time. edit: the forum does the very irritating thing of including the punctuation dots on the urls when there is one (in this case I edited to correct). Would be so easy to exclude them when doing the string replace, or whatever method is used...
-
And thanks for bringing it back Tom
-
Thanks Roope. I don't have time to work on it now, but adds to the list.
-
Joss, you can get the page number with $input->pageNum, so: if ($input->pageNum < 2) { // Show the thing }
-
solved How can I keep second level menu item active on third level subpage?
diogo replied to ljones's topic in General Support
You can also test for the pages parents $page->parents->has($child) -
That's an easy one <?php echo $pages->get('/your/page/')->right; ?>
-
A logo is a logo, a font is a font. If the logo was created with a licensed font, the owner of the logo can do whatever he wants with it (if it was created with an unlicensed font, it shouldn't exist anyway). Including breaking it in parts and release it as a font. I'm not supporting this by any law, but I'm pretty sure of it based on experience and common sense.
-
If I understand correctly, you can also simply store these values on a new property instead: foreach ($events as $event) { $years[]= date("Y", $event->getUnformatted("event_start_date")); // <del>change</del> format of the year in memory for later comparison $event->event_start_date_for_comparing_later = date("Y", $event->getUnformatted("event_start_date")); }
-
Welcome to the forum randyj. There's no point and click option to do those things, if that's what you're asking, but there are some good ways of achieving them. For 1. have a look at Ryan's form builder http://store.di.net/products/processwire-form-builder that would be the easiest way of doing it. Rjay's suggestions would be the free (probably more flexible) way of doing it. 2. would be easy to achieve with a very easy to write date check on your template code: "$pages->find('template=form, created<$today-minus-time')"
-
There is a simple module that does this already http://modules.processwire.com/modules/form-template-processor/, the good thing is that it's a also a well commented starting point for something more complex. You might want to also have a look at this module http://modules.processwire.com/modules/form-template-processor-mailer/ that was already built from the previous one.
-
Thanks Soma, I will have a look at adding it to the module when I have some time.
-
Can't be. The admin template doesn't have segments activated. I did activate them just to try out, and I get the same error anytime I add a segment to any page in the admin.
-
No, they are pages. You can see them on the tree.
-
Hi Roope, thanks for reporting. I can't have a look at it now, but can you clarify how you are using the url segments? is it on the admin side? I never tried that... edit: ok, i can recreate this behaviour. I'm not sure if Ryan established some kind of limitation to using URL segments in the admin (all other admin pages use get), but it's something to find out
-
It's true, the pages still show, sorry for the wrong info. You can Hide them by setting the permissions to the template of the "home-content" page (untick "view pages" from the guest role).
-
Coding with Revolver and Rubber Soul from Beatles. Amazing albums!
-
Glad it work. Just to make it clear because I have the feeling that you took it wrongly, my short answer was not an implicit critic, I was in a hurry and wanted to show as many results so you could solve the problem since I knew there are many different discussions about this topic spreaded around the forums, and it wasn't clear if you solved the error or not.
-
https://www.google.com/search?q=This+request+was+aborted+because+it+appears+to+be+forged.&oq=This+request+was+aborted+because+it+appears+to+be+forged.&aqs=chrome..69i57&sourceid=chrome&ie=UTF-8#q=processwire+%22This+request+was+aborted+because+it+appears+to+be+forged.%22&safe=off
-
Mary, there are several examples on the forums. Soma has a very nice tutorial here http://processwire.com/talk/topic/2089-create-simple-forms-using-api/?hl=%20soma%20%20forms, I also came up with a system to do it easily, but only for "normal" fields (text, texareas, etc...) http://processwire.com/talk/topic/59-module-want-form-builder/?p=11639
-
Doesn't that code assume that you know already the page?
-
Move fields within a template possible on edit page?
diogo replied to Relmos's topic in General Support
Sorry to get back to you only now. What I meant is that it sound like a complicated solution and in PW, if it sounds complicated it's because there is a more efficient way. Like pogidude says, tells us what you want to do in more detail so we can help you to have a better structure. -
Hi and welcome to PW. I noticed you are using ~user directory and also installing PW in a subdirectory. On the .htaccess file that comes with PW, look for these lines, and add the last one: # RewriteBase / # RewriteBase /pw/ # RewriteBase /~user/ RewriteBase /~marinusdebeer/portfolio1/
-
Move fields within a template possible on edit page?
diogo replied to Relmos's topic in General Support
Doesn't sound like a great plan. I would rethink the structure if I were you. -
Move fields within a template possible on edit page?
diogo replied to Relmos's topic in General Support
That's not possible unless you use a repeater for the text fields. -
You can do it even in the site. Just go to the file you want to change and edit it. They will ask you if you want to fork the whole project, you just have to say yes and edit the page to make a pull-request.
- 67 replies
-
- 2
-
- Inputfield
- UI
-
(and 2 more)
Tagged with: