Jump to content

Peter

Members
  • Content Count

    38
  • Joined

  • Last visited

Community Reputation

5 Neutral

About Peter

  • Rank
    Distinguished Member

Profile Information

  • Gender
    Not Telling
  • Location
    Lisbon, Portugal

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Brilliant job kongondo. Thank you so much.
  2. Thanks, but using JSON how can I pass the information that the inner ul should have a class "sub-menu"? <?php $json = $pages->get(1022)->menu_items; $items = json_decode($json, true); if( count($items) > 0 ){ $out .= '<ul class="class="main-menu cf">'; foreach($items as $item){ $url = ($item['url']) ? $item['url'] : $pages->get($item['pages_id'])->url; $target = (1 == $item['newtab']) ? 'target="_blank"':''; $out .= '<li class="list-item"><a href="' . $url . '" class="list-item-link" ' . $target . '>' . $item['title'] . '</a></li>'; } $out .= '</ul>'; } ?> <nav id="mainMenu"> <label for='tm' id='toggle-menu' onclick>Navigation <span class='drop-icon'>▼</span></label> <input id='tm' type='checkbox'> <?php echo $out;?> </nav>
  3. Has anyone been able to make this work with kongondo's MenuBuilder? With MarkupSimpleNavigation it works like a charm but I want the client to have more control of the menu from the admin.
  4. Hi, I get the following errors when trying to configure Lister Pro: ProcessPageListerPro.js?v=101-1452724320:40 Uncaught TypeError: Cannot read property 'on' of nullProcessListerPro.init @ ProcessPageListerPro.js?v=101-1452724320:40(anonymous function) @ ProcessPageListerPro.js?v=101-1452724320:209l @ JqueryCore.js?v=1452713217:2c.fireWith @ JqueryCore.js?v=1452713217:2v.extend.ready @ JqueryCore.js?v=1452713217:2A @ JqueryCore.js?v=1452713217:2 The browser (Chrome, Safari and Opera on the Mac) complains about this function in ProcessPageListerPro.js: ProcessLister.results.on('loaded', function() { ProcessListerPro.pageClick(); // refresh counters }); This renders the Lister Pro configuration unusable. Doesn´t allow deleting or adding filters or change any other setting. I can comment out the function and it kind of works, but then it does not list all of templates/fields available to Lister Pro. I have the same experience locally (vagrant) and on the server (tested on PW 2.7.3 and 3.0.3) Anyone experiencing the same? Any ideas how to fix this? PS. I no longer have access to the Lister Pro VIP forum, thats why i'm posting here. - Peter
  5. I need project.project_progress to output as integer for the progress bar: <script> app.controller('projects', function ($scope) { $scope.projects = []; $scope.projects = <?=$page->getChildren('template=project')?>; $scope.sortType = 'title'; $scope.sortReverse = false; $scope.searchProject = ''; }); </script> ... <tbody> <tr ng-repeat="project in projects | orderBy:sortType:sortReverse | filter:searchProject"> <td><strong>{{project.title}}</strong></td> <td>{{project.project_start_date}}</td> <td>{{project.project_due_date}}</td> <td> <div class='progress-bar-indication'> <span class='meter' style='width: {{project.project_progress}}%'> <p>{{project.project_progress}}%</p> </span> </div> </td> <td><a href="{{project.id}}"><i class="fa fa-eye"></i></a></td> </tr> </tbody>
  6. Hi Manol, How can I access the page url using your module? I am bulding an Intranet solution and I want to use Angular on in the table views of projects, clients etc. and then link to a detail page for a specifc project, client etc. Also, JSON returns id as integer but every other field as string. How can I use/(convert?) a specific field as integer? Thanks for the module. Peter PS. To get the module installed I had to add an is_array check in the getChildren function of your module. EDIT: I used this module for the urls: ProcessRedirectIds
  7. Thanks, I´m running PHP Version 5.4.40. It works now, but the module seems to output the parameters in text too: <section id='video'>yt_autoplayyt_hlyt_relyt_startyt_autoplayyt_hlyt_relyt_start<div class='TextformatterVideoEmbed'... I'm using your module in addition to TextformatterVideoEmbed and I have added it after that one. Another question: Do you know how to mute the sound or set a low volume level when using the autoplay parameter? I know this is not possible using parameters in the url, but there must be way Regards, Peter
  8. Sorry, but I still get errors with the latest version: Parse Error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' (line 49 of /var/lib/openshift/xxxxxxxxxxxxxxxxxxxxx/app-root/runtime/repo/site/modules/TextformatterVideoEmbedOptions/TextformatterVideoEmbedOptions.module)
  9. Hi, I get a parse error when trying to install this module: Parse Error: syntax error, unexpected '.1' (T_DNUMBER), expecting ')' (line 27 of /var/lib/openshift/xxxxxxxxxxxxxxxxxxxxx/app-root/runtime/repo/site/modules/TextformatterVideoEmbedOptions/TextformatterVideoEmbedOptions.module)
  10. I don´t think there are files missing. I tried it with various fresh installs.
  11. Adding a new language in pw 2.5.14 throws this error: Error: Call to a member function setIsDefaultLanguage() on boolean (line 144 of /Users/user/Sites/domains/blog/htdocs/wire/modules/LanguageSupport/LanguageSupport.module) Works in 2.5.3 and 2.5.5
  12. Thanks Martijn, I went with http://example.yourdomain.com, but you can also run your own ngrok server for that purpose if you want. My dev environment is coming nicely together
  13. Thanks Martijn - works great on my Mac Mini! I am not on a fixed IP, so I wonder what's the best way to share a local dev site with a client? I found https://forwardhq.com/ (paid service), but can' get it running on my mac (seems like it doesn't support Ruby versions above 1.9.3...) How du you guys solve this? DynDNS or similar? Any feedback on this is welcome. Thanks.
  14. Thanks Soma, That worked. And thanks for a great module! Now my code looks like this: $mainMenu = $modules->get("MarkupSimpleNavigation"); $pages->get('/employees/')->nav_selector = 'employee=1'; $options = array( 'show_root' => true, 'parent_class' => 'parent', 'current_class' => 'on', 'levels' => true, 'firstlast' => true, 'max_levels' => 3, 'collapsed' => false, 'outer_tpl' => '<ul>||</ul>', 'inner_tpl' => '<ul>||</ul>', 'list_tpl' => '<li%s>||</li>', 'item_tpl' => '<a href="{url}">{title}</a>', 'selector_level1' => 'start=0', 'selector_level2' => 'template!=project, start=0', 'selector_level3' => 'start=0', 'selector_field' => 'nav_selector' ); echo $mainMenu->render($options);
  15. employee=0 works, but returns only the people I don't want in my list emloyee=1 works too, but then the rest of the navigation doesn't return its level2 items... Check out dev site: http://178.79.146.18/en/employees/ Top nav set to 'employee=0' Sidebar nav set to 'employee=1' Thanks, Peter
×
×
  • Create New...