Jump to content

Roych

Members
  • Posts

    240
  • Joined

  • Last visited

Recent Profile Visitors

2,207 profile views

Roych's Achievements

Sr. Member

Sr. Member (5/6)

44

Reputation

  1. I'm still using this approach and it works great for my needs πŸ˜‰ Look at the @BitPoet posts πŸ˜‰ R
  2. hello sorry for confusion πŸ˜‰ my tree looks like this HOME - USERS (template = Uporabniki) - User 1 (template = Uporabnik) - User 2 (template = Uporabnik) - .... OBJEKTI (template = Objekti) "This are Categories" - Objekt 1 (template = Objekt) - objekt 2 (template = Objekt) - ..... There is the url to the site, so you can see how it works. Under (GARAΕ½A) you will see that it is empty and there I would like to show the text. https://pekarna.info/ Thank you R
  3. Hello, I need some help please. I'm working on sortable "portfolio" site wich is working great so far. I have categories (page select field = "objekt_select") that one can select when creating a new portfolio item. (Categories are made up front and are always the same even if they are empty.) I would like to show some text when the categorie is empty. (expl.: This categorie is empty.) So my code look like this, with one of my failed atempts. <article class="col-md-4 text-left"> <div class="about-content-main pad-common high-bg border-top-white"> <h2 class="inner-heading white-text">Buildings</h2> <span class="liner-small"></span> <ul id="mediafolio-filter" class="mediafolio-filter clearfix"> <li class="filter" data-filter="all">All</li> <?php $objekt_select = $pages->find("parent=1026");?> <?php foreach ($objekt_select as $item) : ?> <li class="filter" data-filter="<?= $item->name ?>"><?=$item->title ?> (<?=$pages->count("template=uporabnik, objekt_select=$item")?>)</li> <?php endforeach; ?> </ul> </div> </article> </div> <!-- row:ends --> <div class="list mediafolio-thumb-wrap row"> <?php foreach ($page->find('template=uporabnik, sort=random') as $single ):?> <!-- MY Attempt, but not working --> <?php if ($single->count('template=uporabnik, objekt_select=$single') < 1) : ?> <!-- grid-item:starts --> <article class="mediafolio-grid mix all <?php echo $single->objekt_select->implode(' ', 'name') ?> zoom"> <a href='<?=$single->url?>'><img title="<?=$single->title?>" alt="<?=$single->slike_uporabnik->description?>" class="img-responsive homeimg" src="<?=$single->slike_uporabnik->url?>"></a> <div class="mediafolio-caps"><a class="item-title" href='<?=$single->url?>'><?=$single->title?></a> / <?php if ($single->objekt_select->implode(' / ', 'title')) :?> <?php echo $single->objekt_select->implode(function($item) { return "<span><a href='$item->url'>$item->title</a> / </span>"; }); ?> <?php else :?><?php endif ;?> </div> </article> <!-- grid-item:ends --> <?php else :?><h2>There are no items in this category!</h2><?php endif ;?> <?php endforeach; ?> I'm not very good with PHP so any help is appreciated. Thank you very much πŸ˜‰ R
  4. I think I got it πŸ˜‰ <?php $pageReferencedByMarker = $pages->get((int) $dot->info);?> <a href="<?=$pageReferencedByMarker->url?>"><h4><?= $dot->infoLabel;?></h4></a> <?php {};?> This works, thank you πŸ˜‰ R
  5. Hello, nice module πŸ˜‰ can I get the URL of pages selected with asmSelect. Somehow can't figure it out. My code looks like this: <div class="map"> <img src="<?= $item->marker_image->url ?>" alt="" style="width:100%;"/> <?php foreach ($item->marker as $dot) :?> <div style="top:<?= $dot->y;?>%; left:<?= $dot->x;?>%;" class="box"> <div class="pin-text"> <h3><a href="<?=$pages->get((int) $dot->value->url);?>"><?= $dot->infoLabel;?></a></h3> //link ofc. not working!!! </div> </div> </div> Thank you R
  6. Hello, Need some help getting vr360 images to work. I found this module https://github.com/danielstieber/Markup360Image Installed it but somehow not sure how to show the vr images. I have normal "images" field and I want first image to be VR360 wiev. I've tried with something like this but not working. <?php $m360 = $modules->get("Markup360Image"); echo "$m360->render($images->first->url)"; ?> It would also be great if I could use tags like ('vr') to tell if image is vr or not. Is this possible somehow? I bought SeaVuel template there is the same way of telling the vr from normal images but Im unable to figure it out how it was done there. I already enabled tags in images field. Any help is apreciated Thank you R
  7. Try renaming the folder without - master Just guessing here R
  8. yes, it is working perfectly now! πŸ˜‰ I actualy already tried that but I guess i did something wrong because I couldn't make it work. Thank you very much πŸ˜‰ R
  9. Hello, Not sure if my title is appropriate for this post but I don't know how to explain in short what I need. πŸ˜‰ So I want to create a table of all posts and show what page reference field value is asigned to each post. Visualy I need something like this: # | EDIT | PUBLISHED | POST TITLE | first PageReference SPORT | second PageReference COOKING | third PageReference HEALTH | ... | ... 1 | edit | yes | my post 1 | yes | yes | / | ... | ... 2 | edit | yes | my post 2 | / | yes | yes | ... | ... 3 | edit | no | my post 3 | yes | yes | yes | ... | ... I hope you get the idea. So I have tried to create this but somehow not working as expected. My code below: Atm I'm showing values instead of Yes & No, just to see if it works. <table class="table table-bordered table-hover"> <thead> <tr> <th scope="col">#</th> <th scope="col">edit</th> <th scope="col">published</th> <th scope="col">Article title</th> <?php foreach($pages->get(1067)->children() as $child) { echo "<th scope='col'><a href='{$child->url}'>{$child->title}</a></th>"; } ?> </tr> </thead> <tbody> <?php foreach ( $pages->find('template=blog-detail, sort=-created, include=all') as $single ):?> <tr> <th scope="row"></th> <?php if($user->isLoggedin()){ if($single->editable()) { // if editable by user. echo "<td><a class='editpage-inline' href='https://" . $config->urls->httpHost . $config->urls->admin . "page/edit/?id=". $single->id ."&modal=1'> <i class='fa fa-pencil' aria-hidden='true'></i> Uredi!</a></td> "; }};?> <?php if($single->is(Page::statusUnpublished)): ?> <td style="color:red;font-weight:800;">Ne</td><?php else:?><td>Da</td> <?php endif; ?> <td><a href="<?= $single->url ?>" target="_blank"><?=$single->title;?></a></td> <?php if($single->zasvojenosti_select) :?> <?php foreach($single->zasvojenosti_select as $item):?> <td><?=$item->title?></td> <?php endforeach; ?> <?php else:?> <td>no</td> <?php endif;?> </tr> <?php endforeach; ?> </tbody> </table> It is working somehow but it is all messed up. The columns are not showing up as they should, there should be an empty column if the value is not set for the article. This is what I get I just hope you understand what I mean πŸ˜‰ Thank you very much in advance R
  10. Hello Maybe this was already asked, but could't find anything on the forum. Is it possible to merge two menus together somehow. I have a header menu with logo in between and now Im using two separate menuesbuilders for this. I also need to have another one for mobile. So everytime I update one menu I have to update mobile separately. Any chance I could combine two menues together so I wouldn't have to update the mobile everytime? So it would show both left and right in the mobile automaticaly. my code: (mobile menu) <?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' => '',// a CSS ID for the menu 'menu_css_class' => 'dl-menu',// a CSS Class for the menu 'submenu_css_class' => 'dl-submenu',// CSS Class for sub-menus 'has_children_class' => 'menu-item',// 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' => 1,// how deep to fetch 'include_children' 'current_class_level' => 3,// how high up the ancestral tree to apply 'current_class' 'default_class' => '',// a CSS class to apply to all menu items ); echo $menu->render(2146, $options); ?> ID Left of the logo Right of the logo I tried something like this: echo $menu->render(2018|2019, $options); but ofc. not working. I hope I'm making sense here Thank you R
  11. Roych

    SeoMaestro

    Hello, Im trying to get body field from my repeater matrix to od description in SEOMaestro bu somehow can't get it to work. Right now I get title and other fields first then the body field. How can I achieve this in default settings. Thank you R
  12. Was just looking at it. Thank you for explaining πŸ˜‰ R
  13. I guess it still is πŸ˜‰ When I disable tracy the CO is gone. πŸ˜‰ Thank you R
  14. Hello, I have this little green CO in my favicon. I was just wondering, what does that mean, was googeling but couldn't find anything. Can someone tell me what is this for? Thank you R
  15. Will try to remember this one, thank you very much I'ts working great now πŸ˜‰ R
Γ—
Γ—
  • Create New...