Jump to content

kaz

Members
  • Posts

    104
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling
  • Location
    Munsterland

Recent Profile Visitors

565 profile views

kaz's Achievements

Sr. Member

Sr. Member (5/6)

14

Reputation

  1. After every login I receive this mail: Hi kaz, You just logged in from a device we haven't seen you use before. Browser and Mac are always identical …
  2. @horst I have never used the combo field. This is interesting, I tried to test it. I have defined a combo field 'setting' with a few subfields, company (setting_company), name, street, and so on. I created a template with these field, and assigned it to a new page. The echo is not working, I can't get the data. No error message, it just keeps empty. echo $page->setting->setting_company; echo $pages->get('1052')->setting->setting_company; The first line (Using your Combo field from template files) I have from: ProFields: Combo field. How do you retrieve the data, from the page, from the template, from the field?
  3. How do you set up global settings? I did it this way: I do a template settings (without php file). I made fields, company, name, city, phone, ... which are included in the template. Then I created a Settings page in the Tree with the Settings template, and declared the page as Hidden in the Page Settings. I retrieve the content via page ID. Is this a common way? How do you implement global settings?
  4. @Andy This works perfect, good job!
  5. @Andy Unfortunately, I could not find a solution with it to remove the link to the Global Setting either. At my complete code no URL is called at any point, I think that the module adds the link uncalled. Why, I have no idea. <?php $options = array( 'popupFormatter' => function($page) { $out[] = "<strong>Company</strong>"; $out[] = "Street"; $out[] = "ZIP City"; return implode('<br/>', $out); } ); echo $map->render($pages->get('1028'), 'settings_location', $options); ?> If someone like me calls the data from Global Settings I would appreciate your feedback. How did you defined it? // Edit: I find a solution in a post from 2017: In MarkupLeafletMap.js, I changed the code marker.bindPopup("<b><a href='" + marker.linkURL + "'>" + title + "</a></b>" + extra); to marker.bindPopup("" + extra + ""); Then the line breaks: extra = '<br />' + extra; to extra = '' + extra;
  6. It's a good consideration. I set it up this way: I have a base template. In it I load per include the news template. The news template has only the code I need to display the articles. Here's the complete code of the news template, including the code for the summary: <!-- News --> <?php foreach($pages->find('limit=5, template=news, sort=-publish_from') as $item): ?> <div class="uk-width-1-1"> <h5 class="uk-margin-remove uk-heading-line"><?=$item->title?></h5> <ul class="uk-list uk-margin-remove uk-text-muted"> <li> <span uk-icon="icon: calendar"></span> <time datetime="<?=$item->publish_from?>"><?=$item->publish_from?></time> </li> </ul> <?=$item->article_content?> <hr class="uk-divider-small"> </div> <?php endforeach; ?> <!-- News // --> <!-- Pagination --> <?php $results = $pages->find("limit=5, template=news, sort=-publish_from"); echo $results->renderPager(array( 'nextItemLabel' => "vor", 'previousItemLabel' => "zurück", 'listMarkup' => "<ul class='MarkupPagerNav uk-margin-medium-top'>{out}</ul>", 'itemMarkup' => "<li class='{class}'>{out}</li>", 'linkMarkup' => "<a href='{url}'><span>{out}</span></a>" )); ?> <!-- Pagination // --> I only have a summary, because I didn't manage to build the whole thing including a detail page. I have activated Allow Page Numbers only in the included news template.
  7. @netcarver I have the same result with this code (plus an additional unformatted list above the pagination😞 $results = $pages->find("limit=5, template=news, sort=-publish_from"); echo $results->render();
  8. @netcarverAllow Page Numbers was already activated. Without activation the pagination would not work (!?), but it works. Only the link to the pages, the URL, I think is wrong <a href='{url}'><span>{out}</span></a>. The link is surely not wanted like that: ?page=2
  9. I have for a news site (Lister Pro) a pagination with MarkupPagerNav. $results = $pages->find("limit=5, template=news, sort=-publish_from"); echo $results->renderPager(array( 'nextItemLabel' => "vor", 'previousItemLabel' => "zurück", 'listMarkup' => "<ul class='MarkupPagerNav uk-margin-medium-top'>{out}</ul>", 'itemMarkup' => "<li class='{class}'>{out}</li>", 'linkMarkup' => "<a href='{url}'><span>{out}</span></a>" )); The pagination is displayed but does not work. The link is output as follows: http://192.168.64.2/news/?page=2 When I click the link, the same page is reloaded, not page 2. I have 7 entries, with limit 5, 5 entries are correctly displayed on news page 1. I am worried about the news/?page=2, shouldn't it be news/page2 ?
  10. @diogo I have no output. Simply nothing happens … <?php echo setlocale(LC_ALL, 'de_DE.UTF8', 'de.UTF8', 'de_DE.UTF-8', 'de.UTF-8', 'de_DE@euro', 'de_DE', 'de', 'ge'); ?>
  11. I'm sorry: The echo has no output, not in frontent, not in source code. My entry in C is: de_DE.UTF8, de.UTF8, de_DE.UTF-8, de.UTF-8 localhost is: // setlocale(LC_ALL, 'de_DE.UTF8', 'de.UTF8', 'en_GB.utf8', 'en.UTF-8'); setlocale(LC_ALL, 'de_DE.UTF-8'); I work localhost with XAMPP, macOS. I have no experiences with SSH. Sorry about giving up. But when I don't see a change, then perhaps I give up too quickly.
  12. @diogo it does not work, the error remains. No matter what I do, it doesn't change anything. The problem is probably in my system? Thank you for trying to help, but I don't want to try any more.
  13. C This was already done before I posted the article, the entry C is de_DE.UTF8, the default language. All entries are included. de_DE.UTF8 in 'C' Translate LanguageSupport.module, setlocale(LC_ALL, 'de_DE.UTF-8'); in config.php The error message remains.
  14. I have tried everything, I give up. The page works properly, the error is nonsensical, just a small blemish for the administrator.
  15. I did try it with: setlocale(LC_ALL, 'de_DE.UTF8', 'de.UTF8', 'en_US.UTF-8', 'en.UTF-8'); in config.php + cleared cache Then I tried adding the setting of the languages in the Translate LanguageSupport.module: de_DE.UTF8, de.UTF8, en_US.UTF-8, en.UTF-8 + cleared cache I have restored the entry in the config to setlocale(LC_ALL, 'de_DE.UTF-8'); The error message remains. Perhaps a short explanation of the page: I have replaced the default language to German, including installation of the language packs. A second language is not installed yet, is planned for later. The fields of the templates are already set to *Language, because it was possible after installing the language, a step in preparation for the second language.
×
×
  • Create New...