Jump to content

HannaP

Members
  • Content Count

    18
  • Joined

  • Last visited

Community Reputation

21 Excellent

About HannaP

  • Rank
    Jr. Member

Profile Information

  • Gender
    Female
  • Location
    Crailsheim, BaWü, Germany

Recent Profile Visitors

1,480 profile views
  1. good to know... How did you solve it then?
  2. Hi Jannis, Is that you want this <li class="has_children"><a href="#">Über uns</a> appear like a headline ? with no link? I think it would be a good idea to give those 'headlines' their own template like 'ueberschrift' or so. Then you could proceed similar to what I posted here using a hook.
  3. just want to add results from above tests for 'tree.jpg'. file_exists = 1 exif_read_data = TRUE exif = TRUE exif["Orientation"] = TRUE Orientation = 8 frontend, halfsized is in right orientation: yes [x ] - no [ ] backend Original is in right orientation: yes [ ] - no [x] backend Thumbnail is in right orientation: yes [x] - no [ ] Is this what I normally would have to expect? ----------- No additional image-related modules in use, PW is 2.7.2
  4. @horst I refererred to the original image when talking about 'large' image. it's the one I see when clicking on a thumbnail in the backend. I have two of those candidates that behave differently. Thanks for clarifying about the orientation stuff of exif-tags. I didn't know that. I used exiftool to output the CW 270 and gThumb for the other one. I would like to send you a link via PM, so you can inspect those images further, if that helps.
  5. Even with AutoRotate set to true I have some photos that won't be rotated . They are ok in large version, but not in admin thumb. I noticed that they have something like this in their exif-tag: Camera Model Name : Canon EOS 450D Orientation : Rotate 270 CW whereas those that work fine have something like Orientation: bottom-left. Maybe that helps ..
  6. Have noticed this too, with a friend's site. He uses a Canon Camera. Large versions are fine, but thumbnails are not.
  7. Solved it myself ... Finally managed to set up hooks: function myItemString(HookEvent $event) { $child = $event->arguments('page'); // current rendered child page // any logic with $child possible here /** * Überschriften */ if ($child->template->name == 'menue-ueberschrift') { $event->return = "<span> $child->title</span>"; }; /** * active */ if ($child->template->name == 'standard') { if ($child->id == wire('page')->id) { $event->return = "<span> $child->title</span>"; } }; } // setup the hook after on ___getItemString($class, $page) method $nav->addHookAfter('getItemString', null, 'myItemString'); /* Render Navigation Markup adding options, too---------------- */ echo $nav->render() Seems to work so I guess it's ok. And I've learned something new Cheers Hanna
  8. Hello all, I have two questions: First: using MSN Module ... is it possible to have "unlinked" items in the menu?. I have several pages that serve as headlines to structure the content better. They have a seprate template (menu-ueberschrift) and they should not be clickable ... just be there as plain text. These Items have children. I want an uncollapsed menu.. Second question: Goes into the same direction: I would like to have active pages without links, too. I think there is no need for links for a page I'm currently viewing. Hopefully someone can help, as I'm stuck here.
  9. Thanks a lot for your answer. That helped me.
  10. Hello, I have a newbie question here: I have installed the module. What would the next steps be to see how it works? Do I have to activate it somewhere? (I'm on PW 2.7)
  11. Thanks for pointing me to the Translator. That definitively answers my question. I like the idea of @Can to use _init.php for language strings. I'll try that out.
  12. Hello, I'm trying to setup a multi-language site in German|English|Polish ( German being the default). In _main.php template that comes with the installation I've found this line: <html lang="<?php echo _x('en', 'HTML language code'); ?>"> I don't quite understand what this line should output. Can somebody help, please?
  13. @LostKobrakai This is awsome! Thanks so much for this piece of code. I still have to learn a lot till I can do this on my own. Works like a charm ... I only had to update my PW from master 2.6.1 to the dev branch (Use of ready.php requires at least PW 2.6.7 I guess). The module code you helped me with in your first answer would probably do, but adding an extra button is of course much nicer. @horst Thank you very much for your code as well. I'll take it to study how things work in PW. Maybe it helps me with other tasks later on ... Again ... Thanks to both of you.
  14. Hello all, My page has a lot of images. I created a gallery_image field to upload and display them. Unfortunately they are sort of unordered in the backend, though the filenames are numbered sequentially. I understand that this reflects the order of finished uploads. I figured out how to sort them on the frontend, but is there a way to do the same in backend? I guess this HookAfterPagesSave.module found here https://processwire-recipes.com/recipes/extending-page-save-process/ might do the trick but I'm too new to processwire and too unexperienced in coding to see what code to write. Anyone can help? Thanks in advance Hanna
  15. Hello, honestly that was my first concern,too. But I quickly realised how easily things can be put together without needing a module for this, another one for the next task and so on. In PW I can do almost everything using my templates. Makes me independent from 3rd party module developers once there are upgrades. I expect things won't break that much when PW is upgraded to a new version. Glad I found PW!
×
×
  • Create New...