Jump to content

kaz

Members
  • Posts

    286
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling
  • Location
    Munsterland

Recent Profile Visitors

2,834 profile views

kaz's Achievements

Sr. Member

Sr. Member (5/6)

41

Reputation

  1. I think the field is not what I really need. I don't need a reference to pages what the field is actually for. I only need the heading of categories that I create myself. This would work with a select field if there is a selection of headlines. Using the page reference field, the list of pages which I don't want is not what I need. Because my deadline has already expired, I used the standard text field, which is visible via an if query. The sorting is done by the editor in the page tree. This isn't perfect for every client, but it does what I need. It would have been nice if sorting with a select option had been possible, but now it is as it is. Thanks to all of you!
  2. @virtualgadjo Hi, it's not easy to get the field to work. I have adjusted the settings of the field. Unfortunately, the complete page list is still included in the select field (when selecting in the editor). Are further settings necessary so that only what I have added myself is displayed?
  3. I think my field settings are not correct? I have selected this (Details): If I have two articles and I create an entry with the new Page referencefield, e.g. Sydney, it looks like this: The names of the pages are also displayed. I don't want that, I only want that Sydney (my added categories) is displayed. Is this because of the field settings? and sorry, I don't see a way to scale the image size here
  4. I add articles in ListerPro. The count is displayed as child pages under the page. That works quite well so far. Now I need categories. ListerPro does not support categories, it's a tool to sort data in the backend. I hope that I'm right ..? Without categories, I read the data from the template name: foreach($pages->find('template=sample, sort=sort') as $item) I added a FieldtypeToggle field to the template to check out two categories. My idea was that the content should of both be assigned under the categorie-name headline. I think my search is wrong, $pages->find('template=sample) of course finds all data, regardless of the FieldtypeToggle selection. I read the Select Options Fieldtype (FieldtypeOptions), but I can't get any further. Either ‘0’ or ‘1’ is displayed, not both, and they don't end up under the right headline either. I do not have the complete code anymore, because I have tried new ones for days. Because I obviously need two identical blocks with this procedure, the if query, I therefore need two identical body codes with all fields, with exception of the different headline. That alone is not ideal: <?php if($page->MyFieldtypeOptionsField === 0) { echo "<h3></h3> <div class='uk-grid-medium uk-margin-medium-top' uk-grid>"; foreach($pages->get('template=sample')->find('MyFieldtypeOptionsField=0') as $item) { I'm sorry, lots of text for a simple question. I think I don't use the ideal module. Maybe there are modules with category (or something like that) functions? Trying to solve it with FieldtypeOptions was surely not my best idea?
  5. Which field / module is suitable for creating articles in different categories? I tried it with ListerPro and a radio select field, but that doesn't work. Before I invest any more time, I would like to ask here. Which module / field is suitable for displaying articles frontend in categories? It may gladly be Pro modules.
  6. @TomPich Yes, but it only gives me back the ID. Most of the options in the documentation has printed the ID. @ngrmm It works, the result: <link rel='alternate' hreflang='x-default' href='https://domain.local:8890/leistungen/' /> <link rel='alternate' hreflang='de' href='https://domain.local:8890/leistungen/' /> <link rel='alternate' hreflang='english' href='https://domain.local:8890/en/services/' /> That's perfect. The only thing I changed is: $hreflang = $language->title; to get <link rel='alternate' hreflang='en' href='https://domain.local:8890/en/services/' /> Thanks a lot!
  7. I have a problem with the full path (urls) to multilanguage pages. How to set a multilanguage path? I could not find an answer in the documentation. <?php foreach($languages as $language) { echo "<link rel='alternate' hreflang='$language->title' href='{$language->title}$page->url'>"; } ?> hreflang='$language->title' prints the correct number of available languages, only the href's are missing. Can anyone help?
  8. @markus-th great, I just need another text field and I'm done! I'll test it right away, thanks!
  9. The image field has the option of entering a description in the editor. The text is available as $image->description. What do I do if I don't want to have a caption under some images, but I still need to have an alternative text? Is there an alternative image field with maybe two text fields, I couldn't find anything? If I create an own text field, how do I add it to the image field of the CKEditor? Clients like to use this pretty little image icon in CKEditor to upload images, so I need it there too. The image field can certainly not be extended to comply with the new web accessibility rules, as description is already included. Those who are affected by European accessibility act - how do you deal with it?
  10. @thausmann then 13A (line 320-323) is the right one for me. I have just done it, it works fine!
  11. @thausmann Hi, thanks for the answer. It probably makes sense to remove the comment # of all three lines, 13A - 13C, right? The logo is by uk-svg as a path in the code, the path is relative. It is displayed with or without www.
  12. I have problems with websites where logos are not displayed when the website is first called up. Is there a difference whether a website is accessed with or without 'www.'? When I open a site via www. ... the logo is displayed, without only when the user clicks on a link on the page. $config->httpHosts = array('mysite.com', 'www.mysite.com'); Does the order in which I place it matter? The problem is that search engines find it different, sometimes with, sometimes without www … and the logo is missing. The code of the svg logo <img data-src="<?= urls()->templates ?>assets/images/logo.svg" uk-svg>
  13. For some clients it is hard to upload suitable image formats. The hero image seems to be particularly difficult … Is there a way to save predefined values when editing / cropping photos, e.g. 1920 x 600, 1200 x 800, etc.? This gives the customer a selection.
  14. I have made the entries separated by commas on the installation. I see the fault in the config, the quote/s are wrong. $config->httpHosts = array('dev.my-domain.com,my-domain.com,www.my-domain.com'); I've changed it with the editor. Thanks for the hint!
  15. In the past, I used for the path entry base href="<?php echo $urls->httpRoot; ?>" entries. In ver. 3.0.246, the result is no longer that one domain from the config is taken over. All domains of the config.php $config->httpHosts are taken over. It looks like this, and of course it doesn't work: base href="https://dev.my-domain.com,my-domain.com,www.my-domain.com/" Has anything changed, what should it be like now?
×
×
  • Create New...