1. Forum
    1. Themen Übersicht
  2. Hilfe
  3. Forenregeln
  4. Mitglieder
    1. Team
    2. Mitgliedersuche
  5. Webseite
  6. Archiv
  • Anmelden
  • Registrieren
  • Suche

Neuigkeiten

Dieses Thema
  • Alles
  • Dieses Thema
  • Dieses Forum
  • Artikel
  • Seiten
  • Forum
  • Erweiterte Suche

Neuigkeiten

Letzte Beiträge
  1. JoomGallery 3.x JUX für Joomla! 3
  2. Alle Beiträge zur JoomGallery 3.x JUX
  3. Frontend - JG 3.x

Is there a way to create albums?

  • whistler
  • 22. März 2021 02:40
  • Erledigt
1. offizieller Beitrag
  • whistler
    Benutzer
    Reaktionen
    4
    • 22. März 2021 02:40
    • #1

    I am wondering if there is a way that admins or users could create albums from existing photos in categories. The albums would be then visible/linkable to any page visitors. It would be something like albums on the Airliners.net gallery. Users could create multiple thematic albums and add images to that album.

    Airliners.net sample album

    Its not really the favorites function, because I think you can only have one favorites per user, you can not name it by group and I do not think that a users favorite list could be visible to other users.

    Am I right to assume this would have to be custom developed?

    • Zitieren
  • MrMusic
    Moderator
    Reaktionen
    108
    • 23. März 2021 14:12
    • Offizieller Beitrag
    • #2

    Hi,

    yes, currently there is no function to create albums in addition to the categories.

    Perhaps the 'Tags' function would be suitable for this. Take a look here.

    Regards

    MrMusic

    JoomGalleryfriends.net - die neue Webseite für die JoomGallery

    • Nächster offizieller Beitrag
    • Zitieren
  • whistler
    Benutzer
    Reaktionen
    4
    • 29. März 2021 00:13
    • #3

    unfortunately the tags function will not work out to do it the way I intend. I will code my own view for that. But thanks

    • Zitieren
  • MrMusic
    Moderator
    Reaktionen
    108
    • 29. März 2021 14:30
    • Offizieller Beitrag
    • #4
    Zitat von whistler

    I will code my own view for that.

    ok, it would be good if you could share your future solution with the community.

    Maybe the solution is also interesting for other users.

    JoomGalleryfriends.net - die neue Webseite für die JoomGallery

    • Vorheriger offizieller Beitrag
    • Nächster offizieller Beitrag
    • Zitieren
  • whistler
    Benutzer
    Reaktionen
    4
    • 29. März 2021 17:22
    • #5

    Will to, though do not expect a pro level of code. My joomgallery is modified. A lot. And you would for sure have some serious discussion with me about best practices

    • Zitieren
  • MrMusic
    Moderator
    Reaktionen
    108
    • 31. März 2021 13:35
    • Offizieller Beitrag
    • #6
    Zitat von whistler

    ...And you would for sure have some serious discussion with me about best practices

    That would depend on an attempt ;)

    Maybe it's better than you expected :)

    JoomGalleryfriends.net - die neue Webseite für die JoomGallery

    • Vorheriger offizieller Beitrag
    • Zitieren
  • whistler
    Benutzer
    Reaktionen
    4
    • 28. Juli 2021 22:40
    • #7

    Ok, I have not had time to work on this for a while, but basically got some part of this done recently. I am however a noob and have no idea what I am doing, so it is not yet working as desired.

    I can display albums and a preview of the images just fine. Routing works fine to the Albums level which is almost like Category level in Joomgallery.

    My URL would be in this case something like index.php/gallery/albums

    Now, when I click any of the albums, my URL will go to something like index.php/gallery/albums/album/test-album/

    Question here is - can I get the URL to behave in a similar way to how the category view/image view works? So the desired URL would omit the album segment?

    Desired URL would be index.php/gallery/albums/test-album/ ?

    My code in the router is like this:

    In

    Code
    function JoomGalleryBuildRoute
    Code
        if (isset($query['view']) and $query['view'] == 'albums') {
            $segments[] = '';
            unset($query['id']);
            unset($query['view']);
        }
        if (isset($query['id']) && isset($query['view']) && $query['view'] == 'album') {
           $segments[] = 'album';
            $dbquery = $db->getQuery(true)
                ->select('alias')
                ->from('#__joomgallery_albums')
                ->where('id = ' . (int)$query['id']);
            $db->setQuery($dbquery);
            if (!$segment = $db->loadResult()) {
                // Append ID of category if alias was not found
                $segment = 'alias-not-found-' . $query['id'];
            }
            $segments[] = $segment;
            unset($query['id']);
            unset($query['view']);
        }
    Alles anzeigen

    and in

    Code
    function JoomGalleryParseRoute
    Code
    if ($segments[0]=='albums' or $segments[0]=='album') {
        $result_array = JoomRouting::getAlbumId($segments);
        if ($segments[0] == 'albums') {
            $vars['view'] = 'albums';
        } else {
            $vars['view'] = 'album';
            $vars['id'] = $result_array['id'];
        }
    
        return $vars;
    }
    Alles anzeigen

    Bilder

    • Albums.png
      • 925,9 kB
      • 1.479 × 717
    • Zitieren

Letzte Beiträge

  • Is there a way to hide the "Description:" text for Category view?

    GJSchaller 11. Juli 2025 00:48
  • JoomGallery 4.1.0 - Fehler nach dem Update

    reni 9. Juli 2025 21:32
  • URLs nach Update auf JoomGallery4 und SH404SEF /4SEF

    Bjoern 9. Juli 2025 18:14
  • JoomGallery für Joomla 4

    soenke 9. Juli 2025 18:11
  • Can you change the parent category of a category?

    GJSchaller 8. Juli 2025 00:32
  • Looking to replicate JG3 Gallery / Category View under JG4

    GJSchaller 1. Juli 2025 20:01
  • What can you do with Tags?

    FriendlyUser 30. Juni 2025 22:40
  • JG3 Bilder als Artikelbild verlinkt - Welche Migrationseinstellung erhält die Dateipfade?

    MrMusic 30. Juni 2025 10:21
  • JoomGallery for Joomla 4

    MrMusic 26. Juni 2025 13:53
  • Bearbeiten von Bildern nicht möglich

    kaufi88 26. Juni 2025 11:11
  1. Datenschutzerklärung
  2. Impressum
Community-Software: WoltLab Suite™