Jump to content

Lars282

Members
  • Posts

    144
  • Joined

  • Last visited

Everything posted by Lars282

  1. Hey! If you click on a thumbnail image in the pw admin, it pops up in large with a white border around it ... I really like the way this is done and would like to use it on my website in a similar manner. How is this implemented, what scripts is it using? Thanks, Lars
  2. I would like to edit the description next to the image where I can upload the image, not the one in tinymce. so for that to then change, i need to reinsert the image ...
  3. Hey! i was wondering what is the best way to add captions underneath images added in TinyMCE? What I am currently doing is that a JavaScript takes the alt="..." from the image, adds divs around it and adds it after the image. This works fine only that to update the caption, you first need to update the description field, then save, then delete and reinsert image in TinyMCE. Is there a cleaner way? Can I process the php variable containing the TinyMCE text, find the images, get the corresponding captions and then insert them, before outputting this? Thanks, Lars
  4. Thanks! The problem is that the output comes not only from php code. There are various pieces hard coded without php, and then using <?= ... ?> to add content - so I cannot use your suggestion here. But when looping through children, the output comes from the php code, where I could ... but because it is php code with no line breaks manually added, it already is 'minified'. The question is how can I remove all the unneeded spaces/lines breaks/tabs from the file before displaying it to the visitor? What I am thinking: the pages are loaded through some processwire bootstrap index.php/module ... can that be modified to achieve what I want?
  5. Hey! Not sure the tile explains well what I am trying to do: For as long as I can remember, it seems to make a difference (when you care about every single pixel) whether you write <span>XX</span><span>XX</span><span>XX</span> or <span>XX</span> <span>XX</span> <span>XX</span> In this example there is an extra pixel of space between the spans. Now that most content is generated both manually and dynamically with PHP, this is an even bigger problem as there is no consistency. How can I get rid of this problem? I was thinking of somehow removing all tabs and line breaks from the delivered html file before displaying it to the user ... is that the best way and if so, how would I do that? Thanks a million and best wishes, Lars
  6. Thanks ryan. It was indeed the case that the server wasn't reading the .htaccess file. Told the web host and now it is working again.
  7. No! (see screenshot) But they would be quite useful to have ... ! I thought I had the latest version of PW ... Any idea how I can get them? Thanks, Lars
  8. Hope this is not me being very stupid, but my last field is called 'valid_elements' ... ?
  9. Thanks ryan. In which of the tinyMCE settings field should I put this?
  10. Hey. I had installed processwire two months ago and been building up the new site in the background on pw, while the old site was still online. I didn't have time to work on it so didn't look at it all April and now it doesn't work anymore. I can't get any pw page to show, not even the admin page ... it always displays the index.php file in the root directory if I try to go to any pw page. Can anyone help me? Can't figure out what happened! Many thanks in advance and best wishes Lars
  11. Thanks diogo! Does anyone know how it is possible to do in the additional settings fields? Or do I have to try adding to the module? Lars
  12. Thanks! I think I will do that. Though what could I do if I want to be able to use italic/bold/underline as well? Lars
  13. Thanks for your replies! I already have a field in the process wire admin defining the colour of the section, so I would prefer to use that one rather than defining it it the css file -- especially since new sections/categories will be added frequently. Any idea how that would be possible? Worst case, I maybe can process the $page->$tinymcecontent with PHP, searching for some predefined tags like [X] coloured text [XX] and replace them with some <span style="color: $page->parent->category_color">. But I am hoping there is a cleaner way of doing this! Thanks, Lars
  14. Hey. I am using TinyMCE to add articles to my website. They are arranged in categories, each category has a specific colour (assigned via textfield on the processwire page corresponding to the category) which is used for each article that belongs to it. Have a look: http://aglobalvillage.org/journal/issue6/planet/essay1/ It seems straight forward how to use the colour on all articles that are children of a category. But is there a simple way of using that colour in the TinyMCE field of the article? At the moment, you need to enter the hex code again and again to have some lines of the block quotes in colour, and it is not easy to change afterwards. Is there a way that I can simply somehow mark in TinyMCE which line should be coloured, rather than applying the colour directly in TinyMCE? Hope it is clear what my problem is. Many thanks in advance, Lars
  15. Thanks! Just saw there is an option to create templates without files ... can I not just do that instead for all the sub elements?
  16. Thanks for your fast reply! Why do you suggest the hidden parent? What is the advantage compared to making my team members or events hidden? How does this structure work when searching though? I would of course want to include all fields in the search, but obviously display the e.g. events page where everything is listed when searched for and not the 'fake pages' ... ?
  17. Hey. If I want to list something on a page, but the number of elements is variable, e.g. team members with name/position/pic/bio or events with topic/date/speakers etc. how would I do that? Create a new page for each element (team member, event) and make sure that they don't show up in navigation with selectors? Or is there a better way? Thanks, Lars
  18. Thanks for your help -- I added my old index.php (with <base> tag) as a template and am using it as home page for now, linking to the old structure until I have time to move the pages one by one to PW. Works like a charm! If I want a fortnightly changing header, the same on each page, how would I do it best? Adding it to my homepage and using $pages to get the elements? ProcessWire is really great, exactly what I was looking for. Thanks ryan!
  19. My homepage is an index.php file using extensive php code, so diogo's method won't work. Ryan, do you mean I only need to first remove and later make the homepage/index.php a ProcessWire template/page, leaving everything as is and not using any ProcessWire code? All pages of my website use a <base> tag, setting my-domain.com as base. Will this be a problem? Lars
  20. Hey. I currently have a website and would like to use it with processwire in future. How can I install processwire to the root directory without taking the old site down? I would want to move the pages slowly over to processwire one by one without interrupting access to the website for the entire duration. Thanks for your help, Lars
×
×
  • Create New...