Jump to content

pwired

Members
  • Posts

    2,318
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by pwired

  1. Or if you can afford it: adobe indesign
  2. how could i have missed that. $image = $page->images->get("name=picture.jpg"); thanks adrian.
  3. Finding images goes like this: $image = $page->images->first(); $image = $page->images->getRandom(); How do you find an image by it´s image name, e.g. picture.jpg ? Is it possible to find an image by it's image name ? Maybe something like this: $image = $page->images->{picture.jpg}(); If that is not possible what about using the api for finding images that you store in the assets folder ? $image = $page->images-> { url to the picture in the assets folder}(); If that is also not possible, then would it be possible to use php code: $image = php code { url to the picture in the assets folder}(); If that is also not possible, then is the img tag the only possibility ? <img src="<?php echo $config->urls->site?>assets/pics/picture.jpg"/>
  4. I bricked my website while using style tags in the source of body german, english, spanish. body content output is now doubled. Oh man. It´s the last time I tried hacking CKEditor. Back to the drawing board.
  5. Joss, copy and paste the url in the browser seems to work.
  6. Thanks, I am already on it: Fields => body => Input => Format Tags
  7. @Kongondo - thanks for the link
  8. Thanks Joss but seems to be a 404 I remember from previous pw versions there was an entrance somewhere where you could add html tags to be accepted by TinyMce. I hope there is something similar for the CKEditor.
  9. I know I should not ask this but need a quick hack and do it right later with css. In processwire v. 2.5.0 how can I let CKEditor accept all html tags ?
  10. This is certainly the fastest solution for the moment. Thanks for all your replies.
  11. Hi, I entered a picture through the back end where you edit the body in the admin and I gave the picture align-center. But I need the picture to move a bit more to the right for what I want. If I click on the source button I can not enter things like or use style= " " which is not recommended any way. So how would I do this ?
  12. Exactly, but instead in index.php do that in home.php and basic-page.php etc.
  13. Use your own html in header.inc and footer.inc or any .inc you want for your own html that is going to show up on all your website pages. For your individual html that shows up only in certain pages, use it directly in any template file. In fact you can use php echo to output any html at any place in your website. Does that make sense ? I have to go to work now, so I have no time left to find posts in the forum where this is shown with examples. Will see how this thread is going when I am at work. Otherwise will post back. Stick around here.
  14. Hi there You can read it all here: https://processwire.com/about/roadmap/ enjoy the read
  15. Saturday evening chill out time getting lost and find home again
  16. Where to find more about $config->prependTemplateFile = '_init.php'; $config->appendTemplateFile = '_main.php';
  17. Thanks LostKobrakai that makes a lot of sense. I guess what you enter in config.php will show up as Disable automatic append of file: _yourfile.php
  18. Under the bar where you can enter the append file name it says: Disable automatic append of file: _main.php After entering my file _circle.php I expected to appear there: Disable automatic append of file: _circle.php I checked spelling in /site/templates/ and _circle.php is ok there
  19. No there are no errors but it seems no matter what I enter in that bar and click on save nothing happens or changes. Edit: If I deliberately change the name _circle.php into _ccircle.php it throws an error that the file does not exist, so that is good news. Leaves me only how I can select between _main.php and _circle.php
  20. So in you're case "_circle.php" should work if it's directly in the templates folder. I tried exactly that but did not work.
  21. Thanks for your replies. Is site/config.php a global setting for all template files but you can do this for each template file with $config->prependTemplateFile = '_init.php'; $config->appendTemplateFile = '_main.php'; Looks like some kind of initialising you can do in your template file ? But in Admin => Setup => Templates => basic-page => Files => Append File how do you enter something in that bar underneath File to append to template file during page render. Must be relative to /site/templates/.
  22. If in pw 2.5 I go to: Admin => Setup => Templates => basic-page => Files => Append File it says: File to append to template file during page render. Must be relative to /site/templates/. then there is a bar underneath where you can enter a path to a file to append ? what is the format used to enter something in that bar ? No matter what I enter in that bar and click on Save, nothing happens. Instead of _main.php, I want to append _circle.php only to template file basic-page.php Is that possible ? Is the idea behind it to let each template file have it´s own markup append file ? Is this a replacement for header.inc and footer.inc or am I only wishful thinking ?
  23. Wouldn't have halve the fun without it around
  24. Besides coding, did you also do the layout, colors, text and pictures ? They all fit together and reflect a company with those products very well. Very nice slide show on the right side with seemingly quarter circle filled pictures stroked with a banner line. Wonder how you did that.
  25. Very nice pictures, besides a developer you are also a photographer, right ? I like the style of the slide show picture counter on the right.
×
×
  • Create New...