Jump to content

Lenz

Members
  • Posts

    38
  • Joined

  • Last visited

Everything posted by Lenz

  1. Hello all, i have a question regarding the following scenario: My customer wants to edit a menu card of a restaurant website directly in the frontend. Each dish / menu is displayed in a row with 4 simple textfields (position nmbr, name, quantity (optional, for drinks) , price). My customer preferably not only wishes to edit/update existing fields/rows, but also add a new one, delete one, or move an existing one up or down to a new position in the card. Would these actions be possible per default in the frontend edit mode, if i'd have e.g. a table profield storing the 4 textfields per dish? Or is this only functional in the backend? In a demo video of a Profield (-> fieldtype table) i saw the requested edit functionality (edit or add a row of fields, drag a row up/down, delete a row, safe) in the backend... Btw., regarding this concrete use case of a menu card: Would i have to use at all a Profield like table or could i accomplish the task also with a Repeater Field or a Pagetable fieldtype? In any case at least i don't want to let my customer mess around with a richtext field / inserting a table within CKEditor in the backend... Maybe there are better approaches than the above mentioned. Edit: I should add, that the site is a static one, equipped with an meanwhile dysfunctional inline frontend editor (that had the capabilitiy of editing, moving, deleting such rows directly inline in the frontend). Now i want to replace this editor with processwire. Thanks in advance
  2. @abdus thank you very much. That did the trick. I put the values (-> en_US.UTF8 ) without quotation marks in the translation field. Also i saw that there was already a string for the german language (-> de_DE), which i left untouched, but now i think it would be better to change it to de_DE.UTF-8 ... Anyway i strongly suggest to change the warning messsage to exactly the line you wrote me in your post, because that's clear and easy to grasp, imho. ok on hindsight - if one has a multilanguage installation - one should know what is meant by "please translate the C locale...", but still, i managed to misunderstand the original message whereas your line is 100% clear.
  3. Hello, i was upgrding to PW new master (3.0.61) from old master (3.0.42) and recieved the following warning (have a multilanguage installation -> german and english): Warning: your server locale is undefined and may cause issues. Please translate the “C” locale setting for each language to the proper locale in /wire/modules/LanguageSupport/LanguageSupport.module (shortcuts provided below): • English • German For example, the locale setting for US English might be: en_US.UTF-8* 1. Where exactly in the file LanguageSupport.module (which has some 900 loc) do i translate the C locale setting? - I couldn't find such a setting in this file... 2. Isn't it a bad idea to make changes to a core file, that normally should be overwritten by the next upgrade? Or do i miss something? Thanks in advance.
  4. very interesting discussion here. @LostKobrakai: If you don't mind, could you elaborate a bit more in detail why this new template strategy could be misunderstood or confused with a template engine? I really don't get the point, but would like to. To my - admittedly rudimentary - knowledge a template engine like twig adds only a little bit syntactic sugar like {{ var }} or something like {% block content %} Content of the page... {% endblock %} But what has this to do with the template strategy Ryan introduced here? And i also fail to understand in which regard the new template strategy could potentially lead to a tight coupling of markup with api stuff? I mean isn't the separation of business logic and view completely independent of using an engine like twig or not? Or in other words: Couldn't you mix up markup and business logic as easily with twig as wihtout it? Or again in other words couldn't you use the MVC pattern as easily with Ryans new template strategy as without it? (-> would like to know more about how to use MVC within PW templating btw...) just curious...
  5. meanwhile i have found out, that if i set the cloning permission directly at role level (Access -> Role -> editor) and disable the cloning permission on template access level, the page tree cloning works, but now the cloning functionality is assigned to all editable templates. I think for now i can llive with that, although i'd be happier if i would have been able to configure cloning per template...
  6. Hello all, i have a problem with page cloning, namely if i want to clone a page together with children pages (page-clone-tree) as a non superuser: Page cloning is a important requirement coming from the future editors of the website. reproduction of my problem: 1. login in processwire admin backend as user with the custom role editor 2. switch to Pages -> Tree View 3. click within the tree on the page which i want to clone 4. click on button copy next to the page (page has children) 5. result: ===================================================================================== page cloning doesn't work, instead reload of complete pages Tree and Message on top: "You are logged in". ===================================================================================== if a page has no children, the page cloning works. Also as superuser page cloning is functional. My system is processwire 3.0.12 multilingual the template of the parent of the page, which i want to clone has the following configuration for role editor: Tab ACCESS: VIEW PAGES ADD CHILDREN (makes no difference if i also add all other permissions like EDIT and CREATE PAGES, but the role editor shouldn't be allowed to create and edit pages on this level) Tab Family: May pages using this template have children ? -> YES Can this template be used for new pages? -> YES the template of the page, which i want to clone as editor has the following configuration for role editor: Tab Access: VIEW PAGES EDIT PAGES CREATE PAGES ADD CHILDREN Add permissions by role: editor: page-clone editor: page-clone-tree editor: page-delete Tab Family: May pages using this template have children ? -> YES Can this template be used for new pages? -> YES Allowed templates for children -> [child-template] the template of a child of the page, which i want to clone has the following configuration for role editor: Tab Access: VIEW PAGES EDIT PAGES CREATE PAGES Add permissions by role: editor: page-clone editor: page-clone-tree (doesn't make sense here, but makes no difference whether this is activated or not) editor: page-delete Tab Family: May pages using this template have children ? -> No Can this template be used for new pages? -> YES Have i overseen something or is there somewhere perhaps a bug? Thank you very much in advance.
  7. kongondo, omg, i managed to introduce me as a great scatterbrain, which is kind of typical for me btw. How could i oversee this ! Thank you very much for this hint
  8. i really have to admit i'm quite bamboozled how amazing this community is. Thanks helldercervantes, you made my night. Really very much of a help! I'll go over your example link and also will study your code sample. That looks reasonable indeed and seems to work exactly as i thought. First step outputting the image, second step iterate over the array and outputting the markers. a pure CSS popup would be fine. Up to now i only managed a static popup box, that doesn't grow with the content, but let's see. I'll try a bit... For now i think i call it a day.
  9. Hello heldercervantes, thank you for your question. Yes it still does happen if i have more than one marker. Hm... Don't i need to iterate somehow over this array to output one or more markers, respectively their x- and y-coordinates? E.g. in one step i output the base image, in another step the markers? I can't find any documentation at the moment... Edit: BitPoet obviously had success outputting this field, so i guess i miss something essential...
  10. ok, my previous absent-minded actions aside now hopefully a more reasonable question regarding outputting an ImageMarkerField: My ImageMarker Type Field is named "product_imageMarker" and i try to fetch the ImageMarker with $product_imageMarker = $page->get('product_imageMarker'); then i try to output the ImageMarkerField with <?php if ($product_imageMarker){ echo '<img src="'.$product_imageMarker->url.'">';}?> resulted in a error >>> Error: Exception: Class 'ImageMarkerArray' doesn't yet implement method 'makeBlankItem()' and it needs to.<<< My ImageMarker Field contains one base image and one marker on the base image. According to the error message the field seems to be an array. i only managed to display the product image itself (the base image which is included in the Image Marker Field) but not both (image + markers) together. So how to output the image and the marker(s)? Again thank you very much in advance. Error:
  11. wow astonishing the fast reaction time. Thanks BitPoet and Kongondo, i already had a regular image field assigned to my template, but i forgot to enter the name of that image field in the imagemarker field's settings. Now that i did this imageMarkerfield fetched my image. So far so good. But there are no markers available yet, even not, after i selected a page to add as marker. The selected page appears as a green row like a field in a template. But i only see an empty table header below the fetched image, saying "Marker Information Page" - "Marker X-Coordinate" - "Marker Y-Coordinate", but no input fields or information. ok, maybe this is because i curiously add a regular product page with many content as marker although this doesn't make any sense actually because i only need a few words of infos as marker-content... should i instead better create a (hidden) page (somewhere in the tree) for every marker-information and add this as marker? am i right about this? Thanks for your patience arrgh, sorry , i forgot to save. After saving all is good. Really fun to work with processwire. Couldn't imagine that a cms can be this flexible and letting the developer this much freedom. Again congratulations. Ok, maybe this gratitude stems from some torture in the past using systems, which are not so flexible and easy to use...
  12. Hello kongondo and heldercervantes, thank you very much for your fast reactions. ok, then i'll consider switching back to master. Edit: One question though: Is it easily possible to add Image Markers via FieldtypeImageMarker later to a given product image, say if i first go with a normal product image and later want to add Markers via the module when it is tested against 3.x and compatible with 3.x? i actually would think so.
  13. Hello all, this is not only my first post here but at the same time my first use of processwire cms. From what i see so far this is an amazing piece of software. Big thank you for that and for the great community. Now my question regarding this module FieldtypeImageMarker, which i want to use to add markers with info-text to the product-images of my product pages. i am on processwire 3.0.9 and have installed the module (newest dev branche) manually as is described officially in the processwire modules section (created a new directory under site/modules named exactly the same as the .module file, there i unzipped the content of the module.zip, went into PW admin backend, there i went to modules, checked for new modules, found it in the modules list, installed it, during installation there appeared some file compilation messages on the top with status ok (green background), so i thought all went fine.) After reading about compiled modules i thought the module could well be compatible with the 3.x branche of PW. During installation i didn't see any errors showing up in my admin backend. i added the field to my (product-)page template, but when i open a concrete product-page where i expect a ImageMarkerField i can only see the label of the field and the description, which i added during field-setup. Additionally i get this error-message: Field: The specified file field does not exist! But in Setup -> templates -> product-page template the field is set. Have i perhaps overseen something? Or is the module perhaps not compatible with PW 3.x? Help is much appreciated. Thanks in advance
×
×
  • Create New...