Jump to content

Martijn Geerts

PW-Moderators
  • Posts

    2,769
  • Joined

  • Last visited

  • Days Won

    31

Everything posted by Martijn Geerts

  1. Must be grey in my head, reading is so difficult.
  2. If that's in PHP, then it's the dash. Dashes can't be used in PHP variable names.
  3. 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.
  4. 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'>"; }
  5. Probably you could check it against processPageEdit process, and otherwise disable it.
  6. 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)
  7. @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.
  8. 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:-))
  9. 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.
  10. Let's use names of CMS systems Drupal Wordpress eZ Publish DotNetNuke eZ Publish Mambo Pimcore
  11. 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.
  12. 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
  13. 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.
  14. 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
  15. I doubt that using php.ini will help here as error_reporting and ini_set is set in the index.php
  16. Here it's works the same. Recognise it as a whole. But I do remember I'm programming in my dreams...
  17. Adrian, are you programming while dreaming ? (sometimes I do)
  18. 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.
  19. 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.
  20. 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.
×
×
  • Create New...