Page 1 of 1
Import item menu in csv
Posted: 18 Jun 2017, 06:49
by dotcom22
Hi Jan
I wondering if your Pro version allow us to import items using csv file...and if not do you plan to add this feature?
In fact I use Excel for make my "paper menu" and also for update my Point of Sale Tablet/Cloud system. If I could use the same csv file for update also Phoca Menu that will just beautiful instead to have to re-type again all...
TY
Re: Import item menu in csv
Posted: 18 Jun 2017, 14:11
by Jan
Hi, users asks for more simplified feature than excel or csv - for raw text (with markdown used for header and date, items can be separated by semicolon (;) or tab). I didn't test it but such format can be maybe used in excel/calc but as I wrote, users asked for quickly editing in text editor.
See:
https://www.phoca.cz/documents/52-phoca ... 8-raw-edit
Jan
Re: Import item menu in csv
Posted: 20 Jun 2017, 08:22
by dotcom22
Ok I got now a Pro version...
I will see about Raw format...It seem that can be useful...However I made some test and I seen even if I disabled HTML editor in Restaurant Component, the editor still present and save data with html tag making frontend display too large. When I make Multiple Edit, I see all tag and if I remove manually, they come back on next edit. The Raw editing do not show any html tag... How to remove permanently all tag without disable HTML editor for the whole site ?
Re: Import item menu in csv
Posted: 21 Jun 2017, 16:27
by Jan
Hi, raw edit does not use any editor, it is just about raw text. Editors in PRM are used e.g. for header, footer or description where you can format that output. But if you use raw edit, there is a premise, you really want to add the raw text as quickly as possible.
So which tags you exactly mean?
Jan
Re: Import item menu in csv
Posted: 22 Jun 2017, 15:52
by dotcom22
Ok I got the concept about raw edit but I mean about html which is inserted inside items description. As I said I disabled HTML editor in Restaurant Component but the editor still present even if I click on Toogle Editor button. So then a <p> tag is inserted making my items list more larger than normal..... How to remove Editor or html in items description ?
Re: Import item menu in csv
Posted: 25 Jun 2017, 15:04
by Jan
Hmmm, I think then you need to change the field type directly in code in XML:
E.g. item:
administrator\components\com_phocamenu\models\forms\phocamenuitem.xml
FROM:
Code: Select all
<field name="description" type="editor" buttons="true" hide="pagebreak,readmore" class="inputbox" label="COM_PHOCAMENU_FIELD_ITEM_DESCRIPTION_LABEL" description="COM_PHOCAMENU_FIELD_ITEM_DESCRIPTION_DESC" filter="safehtml" />
TO:
Code: Select all
<field name="textarea" class="inputbox" label="COM_PHOCAMENU_FIELD_ITEM_DESCRIPTION_LABEL" description="COM_PHOCAMENU_FIELD_ITEM_DESCRIPTION_DESC" />
Jan