Fork me on GitHub

Locations module - ShortUrl problem  Bottom

  • Selection by city does not work within Locations module in case ShortUrls are activated. I?m using file-based ShortUrls and already read the documentations, but I have no idea how to customize ShortUrls within htaccess to solve this problem.

    This Link without ShortUrl works: index.php?module=Locations&func=view&ot=location&filter=city:eq:Chemnitz

    ShortUrl generates this Link, that is not working:
    module-locations-view-ot-location-filter-city:eq:Chemnitz.html

    Hoping anybody has an idea?!
    Thanks a lot!

    --
    highlander2008

    ---------------------------
    www.sportzone4you.de
    Sport-Community - Gemeinsam Sport erleben in Deiner Region
  • Same problem here.

    Ticket => http://code.zikula.org/core/ticket/1266
  • Thanks a lot for your reply!

    --
    highlander2008

    ---------------------------
    www.sportzone4you.de
    Sport-Community - Gemeinsam Sport erleben in Deiner Region
  • Which version of Zikula?

    --
    Zikula Lead Developer
    Board Member of the Zikula Foundation
    Follow me on twitter.com/zikuladrak
  • For Pagesetter filters one used to be able to solve that by using this format: index.php?module=Locations&func=view&ot=location&filter=city^eq^Chemnitz
  • What I need to know is, is this a problem that is new in Zikula Core 1.2.0 or does the problem already exist in 1.1.2.

    Drak

    --
    Zikula Lead Developer
    Board Member of the Zikula Foundation
    Follow me on twitter.com/zikuladrak
  • Issue of Locations module already exists in combination with Zikula 1.1.2.
    I never checked with Zikula Core 1.2.0.

    --
    highlander2008

    ---------------------------
    www.sportzone4you.de
    Sport-Community - Gemeinsam Sport erleben in Deiner Region
  • Apparently this hasn't worked since the beginning. These problems should be solved in 2.0, so I would pref to fix it in 2.0 given this has never worked. The whole shortURL processing will be rewritten from scratch since the 1.x code for short URL handling has fundamental design flaws. Directory based URLs work so if you need this functionality please use it there.

    Drak

    --
    Zikula Lead Developer
    Board Member of the Zikula Foundation
    Follow me on twitter.com/zikuladrak
  • Hello Dits,
    thank you for your help - the link

    Quote

    index.php?module=Locations&func=view&ot=location&filter=city^eq^Chemnitz
    works. But how and where can I change the code of the locations module to make the city clickable/ integrate the changed link?

    --
    highlander2008

    ---------------------------
    www.sportzone4you.de
    Sport-Community - Gemeinsam Sport erleben in Deiner Region
  • I've also got another problem. I would like to let user add/ enter their own locations.
    Therefore I tried this from code I found in the forum

    Quote

    in pnadmin.php

    function locations_admin_edit($args)
    {
    // DEBUG: permission check aspect starts
    if (!SecurityUtil::checkPermission('locations::', '::', ACCESS_ADMIN)) {
    return LogUtil::registerPermissionError(pnModURL('locations', 'user', 'main'));
    }
    // DEBUG: permission check aspect ends

    replace by:

    function locations_admin_edit($args)
    {
    // DEBUG: permission check aspect starts
    if (!SecurityUtil::checkPermission('locations::', '::', ACCESS_EDIT)) {
    return LogUtil::registerPermissionError(pnModURL('locations', 'user', 'main'));


    With this code users are able to add locations, but they are also able to edit all other locations they didn't create. Is there any hint to customize the locations module that user are only able to change their own locations?

    Thanks in advance!

    --
    highlander2008

    ---------------------------
    www.sportzone4you.de
    Sport-Community - Gemeinsam Sport erleben in Deiner Region
  • After some testing I have discovered that a : is not valid in a URI before the query string:

    http://code.zikula.org/core/ticket/1266#comment:7

    Drak

    --
    Zikula Lead Developer
    Board Member of the Zikula Foundation
    Follow me on twitter.com/zikuladrak

This list is based on users active over the last 60 minutes.