Jump to content

Roych

Members
  • Posts

    393
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Roych

  1. Yes I'm using this skyscraper profile. and somehow not sure how to work with those regions I read about them but still confused about this. And I have differenet template layouts for pages so it would be easyer for me to work like I'm used to so I can continue my work. fetching includes to those regions is still a mistery for me. ? Not so good with those php codes inside so not really even sure what to look for. All I need is this search (filtering) function to work with prepend strategy. Maybe there is some easyer options for making this kind of article filtering between two page reference field (categories) inside articles, but cant find any good solution. Thank you R
  2. Kongondo thank you for your reply. I somehow managed to make it work. I had to put both in search.php to make it work. require_once('./_func.php'); require_once('./_init.php'); and at the end of it I had to put in the echo region('content'); to show me the results. But now Im struggling to style the search results. I guess I have to put all the styling inside of search.php, but not realy sure how to do that. Everything I try gives me errors. I think I need to change the echo region('content'); to echo the html of the template I wish.not sure how to do that. (I guess I won't be needing region after this, or ..?) Thank you R
  3. Hello, Sorry for the title, didn't really know how to address this post. This would also probably look like very stupid question, but anyways. ? So my problem is, that I would like to change strategies from (skyscrapers-profile) init.inc, main.php to direct output strategy (change in config -> prepend.php, append.php) so (without main and func and init files), as I am more familiar without them and don't really need them for my project. I tried to work with it but always get lost in it somehow (not a coder). When I change the config and got everything working, I can't get the search.php output to work. I'm using skyscraper search.php and search-form.php but I cant get the output to work this way, because some of the functions needed are in func.php file as well. I need similar filtering on my site like in skyscraper profile. (two page reference field in one article and filter between them - filtering articles between categories) I like the result summary that skyscraper profile has. My search.php My search-form.php and my func.php Can this be done at all somehow. Or maybe there is a simpler way to achieve this. I tried to play and change the skyscraper profile, but got lost as I never worked this way before. Sorry again if this post looks crazy, I just hope someone will understand this post. Any help is appreciated Roych
  4. Yes, it would be a great feature for the module. Im mostly using MB. ? Thank you for the code I'll try to addapt it to my needs ? Thank you very much R
  5. Here it is: <ul id="mainNav" class="nav nav-pills"> <li class="active"> <a href='/'>Domov</a> </li> <li class="dropdown dropdown-submenu"> <a href='/about/'>Mladi</a> <ul class="dropdown dropdown-menu dropdown-item"> <li class="dropdown dropdown-submenu"> <a href='/site-map/'>Site Map</a> <ul class="dropdown dropdown-menu dropdown-item"> <li class="dropdown dropdown-submenu"> <a href='#'>Test 1</a> <ul class="dropdown dropdown-menu dropdown-item"> <li> <a href='#'>Test 2</a> </li> </ul> </li> </ul> </li> </ul> </li> <li> <a href='#'>Test 3</a> </li> </ul> Thank you R
  6. here is my original html (already posted above) ? <nav class="collapse"> <ul class="nav nav-pills" id="mainNav"> <li class="dropdown"><a class="dropdown-item dropdown-toggle" href="#">Features</a> <ul class="dropdown-menu"> <li class="dropdown-submenu"> <a class="dropdown-item" href="#">Headers</a> <ul class="dropdown-menu"> <li><a class="dropdown-item" href="feature-headers-overview.html">Overview</a></li> </ul> </li> </ul> </li> </ul> </nav> Thank you R
  7. Sorry for beeing so unclear. So the menu doesnt look like it should. The main menu looks ok, but the submenu looks messy. It does not work as in normal html. I guess my classes in code are not in the right place. posting gifs below Looking good: (original HTML) Not looking good (my code) I hope Im making more sense now Thank you R
  8. Hello, Im kinda lost here, can't make it work, what am I doing wrong here. It kinda work but not the way it should it looks messy. HTML: <nav class="collapse"> <ul class="nav nav-pills" id="mainNav"> <li class="dropdown"><a class="dropdown-item dropdown-toggle" href="#">Features</a> <ul class="dropdown-menu"> <li class="dropdown-submenu"> <a class="dropdown-item" href="#">Headers</a> <ul class="dropdown-menu"> <li><a class="dropdown-item" href="feature-headers-overview.html">Overview</a></li> </ul> </li> </ul> </li> </ul> </nav> <?php $menu = $modules->get('MarkupMenuBuilder'); $options = array( 'wrapper_list_type' => 'ul',// ul, ol, nav, div, etc. 'list_type' => 'li',// li, a, span, etc. 'menu_css_id' => 'mainNav',// a CSS ID for the menu 'menu_css_class' => 'nav nav-pills',// a CSS Class for the menu 'submenu_css_class' => 'dropdown dropdown-menu dropdown-item',// CSS Class for sub-menus 'has_children_class' => 'dropdown dropdown-submenu',// CSS Class for any menu item that has children 'first_class'=>'',// CSS Class for the first item in 'last_class' => '', 'current_class' => 'active', 'default_title' => 0,// 0=show saved titles;1=show actual/current titles 'include_children' => 4,// show 'natural' MB non-native descendant items as part of navigation 'm_max_level' => 5,// how deep to fetch 'include_children' 'current_class_level' => 1,// how high up the ancestral tree to apply 'current_class' 'default_class' => '',// a CSS class to apply to all menu items ); echo $menu->render(1022, $options); ?> This is the best combination I could found that doesn't look totaly broken. Any help appreciated thank you R
  9. Hello, Im having some problems importing dates field with csv file. I need to import around 600 events from old drupal 6 site and all the fields are working great eccept date field it won't import it. Not sure what I need to do to make it work here. I tried to change the output format in PW (details tab) and (input tab), but can't make it work. What am I missing here or what am I doing wrong. First two rows of csv looks like this (fields and date field) what do I need to do to make it work. Thank you R
  10. if I remove everything (<a href .... >and <p>) under source it works, but when I paste the same plain URL directly in ckeditor it doesnt, just show url in frontend (it gives the <a href ...> around it).
  11. if I paste it directly into ckeditor I get: <p><a href="https://www.youtube.com/watch?v=317Mo2fwlTk">https://www.youtube.com/watch?v=317Mo2fwlTk</a></p> But if I paste the url through source I get: (this one works and shows the video) <p>https://www.youtube.com/watch?v=317Mo2fwlTk</p> R
  12. Hi, I'm having some problems it does not show me the video it just outputs pasted url, what am I missing? Textformater is set on the body field but not working. Or if I paste the link through source code I get this (prtscr. attached) Thank you R Edit: Sorry I was still in debug mode. ? It show videos now but only If I paste the link through source code, if I pacte it normaly in ckeditor in shows the url. Any Idea on this, maybe? Thank you R
  13. Great, no problem ? R
  14. Hello, I got lost, need help again with this, please ? I have "Start_date" and "End_date" fields and sometimes event lasts for more than one day. I would like it to be shown to the "End_date" and then it would be nice if it got "hidden" (hidden not deleted in backend). How would I achieve this. Atm Im using "Start_date=today" for hiding events in frontend, but if it has End_date set, it dissapears also when Start_date ends, I don't want this. Is it maybe also possible to set the past event in Hidden in backend after End_date or if just Start_date is set? <?php $events = $pages->find('template=calendar-post, Start_date>=today, sort=Start_date, limit=10'); ?> My entire code here: Can this be done somehow? Thank you very much R
  15. Great, thank you very much. ? It is the awesome module it would be shame if it wouldn't work. ? R
  16. Hello, Yes this was the code I pasted. But I also tried to paste some other text that included some normal URLS (not youtube) and it happened again. I don't have any other textformaters added to the field. Im posting the screenshots of the Details and Input settings. I hope this would help. If you need anything else, fell free to ask. Thank you R
  17. Hello, I just noticed some weird problem, when pasting some text inside "body" field if TextformatterVideoMarkup is applied. The site gets completely unresponsive and won't load at all. The backend works but slow. Second I remove TextformatterVideoMarkup the site works normaly again. Updated the module and my PW is up to date. All updated through updater. We already had some discussion over this here: https://processwire.com/talk/topic/24182-urgent-site-went-down-after-pasting-iframe-code/?tab=comments#comment-205301 Until I noticed that this module is the one making problems. I never had problems with this module until now. Last error I got was: Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 28672 bytes) in /wire/core/WireShutdown.php on line 392 Maybe Im missing something or is there some bug present. ? Thank you R
  18. Hello, I have just played with the site again and noticed that this error only happens when I have Video markup for YouTube/Vimeo added to the body field. As soon as I disable it the site comes back and working normaly. This time I didnt have any Iframes inside my ckeditor. Just copy/pasted some normal plain text. Is there maybe something wrong with the module or ... thank you R
  19. Already tried that also. I enabled the iframes in ckeditor too. Not sure what happeed, but I just recreated the whole site and made whole alot of backups ? Thank you very much. R
  20. I actualy already deleted the page and emptied the trash but still. ?
  21. I tried an I still get this 2 errors: Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in /wire/core/WireData.php on line 68Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 32768 bytes) in /wire/core/WireHttp.php on line 1
  22. Already tried both. thx
  23. I already tried I have 512M set atm. Cant increase more in control panel.
  24. Hello, Everything was working fine until I pasted the Iframe code in ckeditor "body" (through source), then the site won't load anymore. I get: Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in /wire/core/Modules.php on line 2727 Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in /wire/core/WireShutdown.php on line 426 The admin area is working but very slow, I tried to delete the iframe code, but it wasnt there at all. I also looked in DB but the code is nowhere to be seen. The site won't even load anymore. Any idea what could be happening. I also deleted the cash but no changes. The iframe code I put in was a googleforms Thank you very much R
  25. You are right, thank you .. Not sure what I was doing realy ? R
×
×
  • Create New...