Skip to content
General Revolution Evolution Add-ons International
Login | Register | MODX.com
MODX Open Source Content Management System, Framework, Platform and More.
Find a Partner | Hosts + SaaS | Jobs | Donate
  • RegisterSign Up with the MODX Community
  • LoginUse Your MODX.com Account
  • MODX Community Forums
  • International
  • German
  •  
  • jQuery Lightbox wechselt zur Startseite#

  • 34922
    2
    Freier Webentwickler
    gerhold-webdesign.de

    GerholdLabs Reply #1, 11 months, 4 weeks ago

    Reply
    • Link to this post#1
    Hallo MODx Community,

    hab ihn eine Seite diverse Lightbox-Galerien eingebaut. Klappt auch alles super.
    Nur wenn man durch die galerie durchgeklickt hat wechselt er ins Stammverzeichnis: www.domain.de/#
    Also quasi zur Startseite und nicht zur Bilderübersicht.

    Ich habe schon versucht im Plugin die Links zu tauschen. Dort sind im href # Ancor gesetzt womit man eigentlich
    auf der aktuellen Seite bleiben sollte. Macht MODx aber nicht.
    Hab also daraus mal [[~]]# gemacht was eigentlich funktionieren sollte.

    Leider scheint MODx das allerdings innerhalb von JavaScript nicht zu verarbeiten und ich lande bei www.domain.de/[[~]]/#

    Jemand nen guten Tipp?


  • 21838
    284
    MODX Free Template Base: MODX-Boilerplate | my blog (lots of MODX stuff) | my gitHub (translations) | MODX User Groups Germany (Facebook)

    novolo Reply #2, 11 months, 4 weeks ago

    Reply
    • Link to this post#2
    Kannst du mal mehr Code zeigen? Glaskugeln funktionieren so schlecht


  • 4172
    1,621
    xdbedit - create your own CMP to edit custom-tables with TV-input-types
    MIGX (multiItemsGridTV, sortable multirecord-TV)
    formit2db with autocreate schema&classes
    formit2resource
    custom-tv-input-type for revo:imagelistTV
    quickCMP - CMP for creating simple backend-'modules' per snippets
    bloX/Xedit - Ressource-Listing and frontend-sorting/editing....

    Bruno17 Reply #3, 11 months, 4 weeks ago

    Reply
    • Link to this post#3
    Leider scheint MODx das allerdings innerhalb von JavaScript nicht zu verarbeiten und ich lande bei www.domain.de/[[~]]/#

    kommt drauf an, wo Dein javascript herkommt.
    Wenn das als js als datei vom browser geladen wird, kann modx das natürlich nicht verarbeiten.
    Du mußt das javascript bzw. die URL-variable dann schon direkt im code stehen haben.
    Oder als javascript-Datei ne modx-resource verwenden, ob dann allerdings die richtige id in ersetzt wird glaube ich fast nicht.


  • 34922
    2
    Freier Webentwickler
    gerhold-webdesign.de

    GerholdLabs Reply #4, 11 months, 4 weeks ago

    Reply
    • Link to this post#4
    Danke Bruno17 für den Denkanstoß!

    MODx konnte den Link nicht verarbeiten da es in einer exterenen JS-Datei steckte.

    Hab den angepassten Lightbox-Plugin-Code in nen Chunk gesteckt und ins Template integriert.

    Jetzt klappt es!





Actions

Login to Post

Other Support Options

To file a bug or make a feature request visit our issue tracker, or you can also purchase commercial support.

Love MODX?

If you build sites for a living with MODX or just love using it, why not give back?

Information

Posted in this thread:
Bruno17, GerholdLabs, novolo

 
Back to Top

MODX Global HQ

1333 N Stemmons Fwy, Ste 110
Dallas, TX 75207
United States

+1 (469) 777-MODX (6639)

The MODX Company

  • Contact
  • Media Center
  • Careers at MODX
  • Wall of Fame
  • The MODX Blog

Sponsors

SoftLayer Firehost: Secure Cloud Hosting

Stay Connected

Read our previous email newsletters.

Twitter Facebook Google+ LinkedIn github Feeds

Privacy Policy | Terms of Service | Pixels by AKTA Web Studio© 2005-2012 MODX. All rights reserved. Trademark Policy