Jump to content


  • Posts

  • Joined

  • Last visited

Everything posted by gfdesign

  1. Hi Nico. Could you provide me again the link? because I see a dead page (#404) Thanks in advanced
  2. Yes, I'm aware that I'm still using an old version but it's due to other apps I have in my local environment that run well with it. I'll try in a clean installation. Thanks for commenting.
  3. I've installed this module in PW 2.4 but I don't see the 'Template Editor' option in my admin menu. Also, I've installed 'InputfieldAceEditor' module as you suggested but no luck. I am working in XAMPP 1.7.7 / PHP: 5.3.8 / Win7 / Firefox. What I would be doing wrong? Thanks in advanced.
  4. Thanks for reply Ryan, but I'm afraid your solution could hide other panels due to the markup is similar in other panels (I guess I have seen this markup in other panels). In the other hand, Soma's solution does exactly what I wanted. Many thanks to both.
  5. Thanks Soma. Your code works like a charm. Best regards
  6. Hello again. I'd want to customize the admin for my client. My intention is to hide one panel for one specific user. Information related to users/roles I wouldn't want be visible, so... How should you do if I want to hide "Who can access this page?" panel in Setting page for one specific user? Should I do it through .css instead? This is the panel (red) I want to hide: Any clue will be welcome Ps: Sorry, the title should be "How to hide 'who can access this page?' section", but I didn't find how change it
  7. Yes. That's the exactly I was wondering. I have done it before but I couldn't remember it Thanks for taking your time explaining me. Best regards
  8. Hello I want to know how I have to translate these texts I've marked in red in the below image: I've found these texts in wire\modules\Inputfield\InputfieldPage\InputfieldPage.module but as this module did not have files with .json or .zip extension, I can't load the texts I want to translate on Admin > Setup > Languages How I should translate them? Thanks
  9. Thanks a lot Kongondo and Soma. Very useful ideas and interesting approaches to keep in mind and put in practice for similar issues Best regards
  10. The idea is to give to my client the possibilty to edit any (or the majority) texts in his website. I tried with "Page Edit Per User" module following the instructions, but when I select "/http404/" page in order to be editable for "client" user, this does not display in the "Pages" screen of this user. The template that uses 404 pages, has just two fields: Title and Body.
  11. Hi. I have a silly question related to 404 page. I'd like to give acces to my client so can edit the error #404's messages. I have no idea how set roles/permissions so he can do it. Any suggestion? Thks
  12. Yes, it does. Now, I'm understanding how it works. Many thanks for the help Fernando
  13. Hello I wonder how I should do if I want give to my client the permission to delete some specific pages but prohibit others. In my case, the site where I am working on there are "works" pages, that I'd like the client be able to edit/delete but the rest of pages, he can just edit, not delete them. In other word, I'd like my client can be able to delete to pages with template "work" and no other pages with other templates. This should be my sitemap: Home (client can just edit) Works (just edit) - Work 1 (edit and delete) - Work 2 (edit and delete) ... - Work N (edit and delete) Store (just edit) Contact (just edit) Any suggestion? Thanks
  14. Both work. I did not know about data-url method. Very useful I just wanted to leave the code that worked to me: <div id="topimage" data-url="<?php echo $config->urls->root ?>site/templates/img/top.png"></div> Thanks a lot Fernando
  15. Sorry, the urls to both files in my PW installation are: ../site/templates/img/top.png (image for the button) ../site/templates/js/scrolltopcontrol.js (script that shows the button) I'll try your solution and I let you know if it works Thanks
  16. I want it be relative because I wouldn't want change the url once I have to move to online server. (Now, I'm working in a local environment using XAMPP). This script is to display one button when user arrives the bottom of page, thus can go back to the top when click it. Absolute url could work, but I just wonder if it's possible to do if it's relative in order to avoid extra work.
  17. Hi, a silly question. I need to specify an image in a .js file. This file is and is located in /site/templates/img/top.png Can somebody tell me which should be the relative root to get this image? I guess php won't work inside the .js file or am I wrong? Thanks in advance Fernando
  18. Guys, many thank for the patience. Very appreciated. I already got it. Sorry for many questions as well. My respects
  19. Yes, you're right. Now, I am not getting errors. But, I'd want this field be limited to one image. So, should code change?
  20. Very clear, however it doesn't work for me. I'm getting an error in the template. It's strange because in the Admin side, this module works fine Error: Exception: Method Pageimage::first does not exist or is not callable in this context (in C:\xampp\htdocs\test\wire\core\Wire.php line 232) #0 [internal function]: Wire->__call('first', Array) #1 C:\xampp\htdocs\test\site\templates\trabajo.php(16): Pageimage->first() #2 C:\xampp\htdocs\test\wire\core\TemplateFile.php(125): require('C:\xampp\htdocs...') #3 [internal function]: TemplateFile->___render() #4 C:\xampp\htdocs\test\wire\core\Wire.php(271): call_user_func_array(Array, Array) #5 C:\xampp\htdocs\test\wire\core\Wire.php(229): Wire->runHooks('render', Array) #6 [internal function]: Wire->__call('render', Array) #7 C:\xampp\htdocs\test\wire\modules\PageRender.module(250): TemplateFile->render() #8 [internal function]: PageRender->___renderPage(Object(HookEvent)) #9 C:\xampp\htdocs\test\wire\core\Wire.php(271): call_user_func_array(Array, Array) #10 C:\xampp\htdocs\test\wire\core\Wire.php(229): Wire->runHooks('renderPage', Array) #11 [internal function]: Wire->__call('renderPage', Array) #12 C:\xam This error message was shown because you are logged in as a Superuser. Error has been logged. Any idea?
  21. Sorry, I don't understand how to use in my templates I have the "main_image" field using "CropImage" type. I set: thumbnail,310,175 What code I should to use if I want to display this field in a list of pages and in one individual page? Thanks in advanced Fernando
  22. Perfect. I knew it was very simple BTW, How do you know what's the ID of any page besides when you're over 'edit' link in the Admin Panel? I mean, can you see the ID in some place of Admin area?
  23. Sorry. And In case I need to get just one field from a specific page? I'd want to get the value of the field "enlace" (where I keep an URL value) in the page "store" to use in the main menu in all the pages. How would you do it? Do I need to do a foreach anyway?
  24. Yes, it's much more efficient. Thanks a lot!
  25. Thanks Arjen. Finally, I used this code I found. <?php $resultstr = array(); $categorias = $pages->get("template=categorias")->children("template=categorias, sort=sort"); foreach ($categorias as $category) { $resultstr[] = $category->name; } $category = implode(" ",$resultstr); ?> <script type="text/javascript"> $(function(){ $('#Grid').mixitup({ multiFilter: true, showOnLoad: '<?php echo $category ?>' }); }); </script> Surely, it can be optimized / improved, but it works Thanks for your time
  • Create New...