-
Posts
2,769 -
Joined
-
Last visited
-
Days Won
31
Everything posted by Martijn Geerts
-
Must be grey in my head, reading is so difficult.
-
If that's in PHP, then it's the dash. Dashes can't be used in PHP variable names.
-
Fake image ?: <img src='1x1_px_blank.gif' style='background: url(/original/car.jpg)'> But I think an image of a car should be an image of an car and not a blank pixel.
-
How is you image field setup? Single or array ? $createdUser = $page->createdUser; // Assumed the images field is an array of images. (depending on field settings) $image = $createdUser->images->first(); if ($image) { echo "<img src='$image->url' alt='$image->description'>"; }
-
Probably you could check it against processPageEdit process, and otherwise disable it.
- 67 replies
-
- Inputfield
- UI
-
(and 2 more)
Tagged with:
-
Creating and deleting permission settings
Martijn Geerts replied to GuruMeditation's topic in Modules/Plugins
I suspect that the permission returns an object (NullPage). So your if statement will be: I guess that if you append ->id to your if statement, the outcome will be the integer 0 and thus false. if($this->permissions->get('new-permission')->id) { // higher then 0, the permission (Page) does exists. } else { // 0 If not exists, the ID comes from the NullPage } ps, I didn't checked what I typed here (not on my working machine right now) -
FieldtypePageWithDate & InputfieldPageWithDate
Martijn Geerts replied to Raymond Geerts's topic in Modules/Plugins
@steve: I don't see 'assigned' back in the names array of ->getMatchQuery, so I doubt. One thing I know for sure: Raymond will be open for enhancement. -
The example you shown is the static part. Now you need to describe every template and every field and every relationship you see then reverse engineer it back to that a developer could actually build this. Thats on server & clientside. (BTW what I see there is a big opportunity that the end user can make a big mess:-))
-
Andy, you're pretty energetic. What if you start to mockup the things you want. Just describe every template and every field and every relationship and how it should be presented. After that build the whole site with static HTML. If done all steps, you've a fundament from where development can start.
-
Let's use names of CMS systems Drupal Wordpress eZ Publish DotNetNuke eZ Publish Mambo Pimcore
-
Whoehaa.... lol
-
Strategies for storing and using email templates
Martijn Geerts replied to onjegolders's topic in General Support
I build an Inputfield that makes connection with mailchimp. On page save a campaign gets created or updated on MailChimp. When you're ready with the newsletter in ProcessWire the newsletter is ready for sending In MailChimp (you only need to go to MailChimp en press send now or set to schedule it). The real problem here is that MailChimp is quicker then me and the used API is deprecated now . If the people who are clever enough to copy sourcecode and can paste it in a newsletter service that a good route I think. -
Strategies for storing and using email templates
Martijn Geerts replied to onjegolders's topic in General Support
Using pages to build the letter, parent renders all the children's markup. - parent (page in the page tree, this is the newsletter) this markup is used for the news letter. - header (contains markup from header) - article (contains markup from image text header link etc.) - article etc.. - image - article - footer -
BTW, I see you've used FontawesomePageLabel, that module isn't continued any more. It's now 'continued' as jQuery Plug-in included as example in AdminCustomFiles.
-
Associate a user to a page (a profile page)
Martijn Geerts replied to Guy Verville's topic in General Support
I think you're looking at the user profile not at the user template. Those 2 defer. To add the fields to the profile, you can go the the User Profile module settings and check which fields you want to add. /processwire/module/edit?name=ProcessProfile -
Notice: Undefined index: searchFields after update to 2.5 dev
Martijn Geerts replied to gebeer's topic in General Support
I doubt that using php.ini will help here as error_reporting and ini_set is set in the index.php- 12 replies
-
- Undefined index
- searchFields
-
(and 2 more)
Tagged with:
-
Here it's works the same. Recognise it as a whole. But I do remember I'm programming in my dreams...
-
Adrian, are you programming while dreaming ? (sometimes I do)
-
Can't type into CKEditor when it's blank (Chrome only)
Martijn Geerts replied to thetuningspoon's topic in General Support
figure it out more people have seen it. Can't help you. -
FieldtypePageWithDate & InputfieldPageWithDate
Martijn Geerts replied to Raymond Geerts's topic in Modules/Plugins
This is great, nice addition Raymond. -
A page that identifies it self as an image. There's no browser in the world that thinks this is a page. A template is a Page factory, what you produce in that factory is up-to-you. Don't be fooled by the word Page as others allready mentioned.
-
Text and Texture Field in Modules often monolingual
Martijn Geerts replied to lisandi's topic in Multi-Language Support
I simply don't get a few thing you've mentioned or I don't understand why you think like that. ProcessWire is framework with a system that can manage content build on top of it, but you want it to be a website mange tool. ProcessWire is perfectly suitable for your task and in the majority it is used like that. But PW will not downgrade to a level where it becomes a website manage tool. You're free to use as much languages if you wish but you have to click a few times more. When the language is not there, it is up-to-you to find someone to translate it. -
drop-it-in
-
I don't know what you mean by content type. But if that means Content-Type like in MIME or something the world would go open for you You can add whatever header() you wish to a template and serve the page as if it was something else. A page can be everything. It can be a PDF or an MP3 or a JSON object or GIF what ever you set in the headers.