Results 1 to 7 of 7
  1. #1
    Join Date
    Jun 2008
    Location
    Bordeaux, France
    Posts
    69
    Plugin Contributions
    6

    Default [BETA] Language key

    ZENCART-1.5.0BETA-07262011b\admin\includes\languages\english\admin_page_registration.php

    I dont if its a mistake but
    define('TEXT_LANGUAGE_KEY', 'Page Name')
    doesnt refer to a language key. Dont know what really is a language key in this page.

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: [BETA] Language key

    The key to which it refers is that used to hold the constant that will be populated with the language-specific text for the page's name in each language pack. This is held in the admin_pages table in a column called language_key.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #3
    Join Date
    Jun 2008
    Location
    Bordeaux, France
    Posts
    69
    Plugin Contributions
    6

    Default Re: [BETA] Language key

    After trying 1.5.0BETA, i think admin_page_registration.php is unclear for a newbie that discover that and unaware of past Kuroi's module. Think that page should be presented as a listing of table admin_pages with capabilities of Insert, Modify, Delete entries to have a full control in case of mistakes. Looking at table admin_pages with phpMyAdmin helps to understand things. A listing page will do the same.

  4. #4
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: [BETA] Language key

    Sort of agree a bit. Sort of disagree a bit.

    Yes. It's not clear. Though knowledge of my earlier mod won't help much though as this was completely new for 1.5.

    The initial idea was that if a mod hadn't been updated to include admin page registration then this might be easier than giving users raw SQL to input.

    Doesn't really work though. So my preference is to drop it completely.

    It was only intended for exceptional use anyway. It's usage would have declined rapidly as mods were updated. And on those rare occasions when it might have been used, it probably is easier to offer a lump of SQL that can be cut and pasted in one go, than to explain how to enter the data here, or provide a mini-me phpMyAdmin clone.

    Thoughts?
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  5. #5
    Join Date
    Jun 2008
    Location
    Bordeaux, France
    Posts
    69
    Plugin Contributions
    6

    Default Re: [BETA] Language key

    Ive looked at PrestaShop to see how this part is done.
    Profiles management is equivalent to ZC and per admin user.
    A sort of admin page registration exists too (linked with classes not pages) but used also for rearrangement of menu items. This functionality permits to order menu items per admin user on 2 levels (horizontal and vertical menus items). Its an extra-gadget.

  6. #6
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: [BETA] Language key

    I too looked at Prestashop, but wasn't impressed in this area. their approach seem to be constructed from a programmers perspective and didn't really reflect the sort of real-world restrictions that people have asked me how to achieve over years.

    As an example, Prestashop would allow you to decide whether a user can view, edit, add or delete a product (i.e. what access to they have to the functions in the product class), but the sort of thing I'm asked would be "how can I restrict my designers to see and edit only the products that they added?".

    Of course, you couldn't do that now with 1.5. But you could create a new page that restricted designers to their own products and give them access to that rather than the existing product pages. The class access based approach wouldn't support this, as access is determined at a more fundamental level.

    The data structure for the new admin access also supports moving pages to other menus and re-ordering the menus. It's pretty easy to do by dibbling in the database tables now, and I'd like to think that at some stage in the future there might even be a UI to allow it to be done from the Admin.
    Last edited by kuroi; 24 Aug 2011 at 12:15 PM.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  7. #7
    Join Date
    Jun 2008
    Location
    Bordeaux, France
    Posts
    69
    Plugin Contributions
    6

    Default Re: [BETA] Language key

    Yes, precisely that could be the functionnality of admin_page_registration.php to re-order menu items plus inserting, modifying, deleting pages. In that case, looks like a mini clone of phpAdmin effectively.

 

 

Similar Threads

  1. Upgrading from my beta of v1.5.5 to v1.5.5
    By Webskipper in forum Upgrading to 1.5.x
    Replies: 23
    Last Post: 25 Mar 2016, 09:14 PM
  2. v155 BETA feedback for Responsive-Classic in v155-beta
    By picaflor-azul in forum Addon Templates
    Replies: 51
    Last Post: 5 Mar 2016, 09:14 PM
  3. [BETA] Profiles
    By gob33 in forum Upgrading to 1.5.x
    Replies: 4
    Last Post: 3 Aug 2011, 11:07 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg