How can I display all of the sibling items in a parent category on a Joomla! K2 item page? I want all, not just the next and previous. I, also, want to display additional data like the image and extra fields. I realize the category page does this already, but I need it on the individual item pages, too.
List sibling items in Joomla! K2 item page
243 Views Asked by Michael Yaeger At
1
There are 1 best solutions below
Related Questions in PHP
- How to add the dynamic new rows from my registration form in my database?
- Issue in payment form gateway
- How to create a facet for WP gridbuilder that displays both parent and child custom fields?
- Function in anonymous Laravel Blade component
- How to change woocomerce or full wordpress currency with value from USD to AUD
- General questions about creating a custom theme Moodle CMS
- How to add logging to an abstract class in php
- error 500 on IIS FastCGI but no clue despite multiple error loggings activated
- Composer installation fails and reverts ./composer.json and ./composer.lock to original content
- How to isolate PHP apps from each other on a local machine(Windows or Linux)?
- Laravel: Using belongsToMany relationship with MongoDB
- window.location.href redirects but is causing problems on the webpage
- Key provided is shorter than 256 bits, only 64 bits provided
- Laravel's whereBetween method not working with two timestamps
- Implementing UUID as primary key in Laravel intermediate table
Related Questions in JOOMLA
- Problem with a simple query script used in RS Forms on Joomla 4
- How point to other link after login
- How to get media manager file attribute (CREATED DATE) in Joomla! 3.10.5
- Joomla 5..0.3 delay in search
- how to make an .mp4 file inaccessible on the public side
- How can I make the content of <field> show only once/under the checkbox clicked?
- Site links have started giving 403 errors through Facebook debugger
- Joomla 5 translation for com_content category layout in custom template
- change the look of the user login in joomla
- How can I use a helper file in a system plugin?
- Trying to send html content in a JSON format using Python to Joomla API
- How to add Joomla 4 user via script
- Joomla - Remove script tags from head with a custom plugin
- Class 'SppagebuilderHelper' not found in Joomla CMS
- Trouble Integrating MySQL 8.0 with MAMP for Joomla 5 on an Older iMac
Related Questions in JOOMLA-K2
- How to create a custom template for k2 category and assign this template into Joomla backed?
- How to migrate Joomla K2 to Wordpress
- Could i use k2 instead of joomla core articles?
- Detect on template index file if Joomla K2 item or Joomla Article
- Joomla k2 items additional meta tags
- How to change Joomla - K2 - item via code?
- Joomla custom types / custom fields without plugin?
- Joomla K2 change pagination titles by adding number of the page to the pagination
- Change image renaming in Joomla K2
- Display Joomla K2 Extra Fields only to Certain Users or Groups
- Get specific Value part from value in k2 extra field
- Filter articles by tag inside a category - Joomla and K2
- PHP variable not accessible until halfway through code
- List sibling items in Joomla! K2 item page
- Multiple Extra Field Groups for K2 (Joomla)
Related Questions in JOOMLA3.3
- How to coding CSS in jEvents plugin to support change text color of Saturday and Sunday day to red text?
- Joomla 3.3.6 user profile form validation
- have to keep manually clearing cache in joomla
- Need support about password encryption in Joomla 3.x
- Pass an array variable from controller to view in Joomla
- Apply Joomla Template to index.php
- error #0 invalid controller name='xyz' format=''
- How to fix JHtmlBehavior::formvalidator not found
- How to create custom plugin for Joomla 3.3
- Adding additional field options to Joomla 3.3 backend to view in category list front end
- jQuery DatePicker + TimePicker in Joomla
- Best way to check if Joomla! 3.4.0 article already exists
- how can I change joomla 3 template background color
- Joomla 3.x: How to add or Link to a external javascript file
- Get sectionid from artice Joomla 3
Related Questions in K2
- K2 Workflow Deadlock Issue while calling stored procedure
- Email notifications of item expiration on K2 (Joomla)
- Getting Base64 string from ImageAttachment Control in K2
- Sort Categories for sj_k2_categories_ii Module in Page
- Joomla multilingual site HTML tag attributes don't change after install k2 component 2.10.3
- K2 auto-complete contrl can't auto complete
- How to make a column in listview editable in K2 Five?
- Data not Returned in Deserialized Typed Array from JSON
- REST api does not Return Values in SmartObject tester
- Message : Error issuing app only token; ServiceName *_sharepoint_com_sites_ipmcomdocs;
- Creating an icon with Users Initials
- How Did I get a solution for Joomla K2 Image problem HASH
- How to create a custom template for k2 category and assign this template into Joomla backed?
- Using Nuget referenced DLL in K2 Smartforms
- jQuery scrollTop only works when DevTools is open in Edge
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
There are two ways, create a plugin or just do it in your item.php template (overriden in your
template/html/com_k2/folder!)Creating a plugin is the correct way. It requires more effort and and creating a plugin is a deep topic that's been described a thousand times.
The same goal can be reached just by editing the item.php template file, but just be aware that it's not a good practice to connect to the database in a template file. You have to do there the same things as you would do in the plugin except you don't have to create the plugin. You have to access the DB and select your desired data from it. Then, you can just write some HTML where you'll put all the data you want.
These pages might help you with both developing the plugin and editing the template
K2 for Joomla - Part 9: Template Overrides
Example K2 plugin (for developers)
Selecting data using JDatabase - Joomla! Documentation