How-to show all groups(pages) in detail view at once?

Status
Not open for further replies.

Basdub

Member
Hi, I have a form with several groups set to be pages. The form works well.

I have a link like so: index.php/component/fabrik/details/1/3 that I use to display the details of the form.

I want all the groups to be displayed one after the other without the "pages".

In my custom detail template, I have already remove the prev/next section.

Is there a settings in my custom detail template i can set to prevent the pages javascript layout to run?

Thanks
 
Well, I temporarily solved my issue by adding a details_X.js file. Inside it I added the following code:
HTML:
(function($){
    setInterval(function(){
        $('div.fabrikForm div.page').each(function(){
            if($(this).is(":hidden") || $(this).css('display') === 'none'){
                $(this).show();
                clearInterval();
            }
           
        });
    },500); 
})(window.jQuery);

Not the cleanest code in the sens that clearInterval should be called once instead of every page. I'll tweak this later today.


Any better way of doing this?
 
You can add to custom_css.php
#details_X_$rowid .page {display:block!important}

X = form ID
 
Couldn't think of another way than php or js. I'm not familiar with the concept of the custom_css.php. I'll try to read more on it. I know css and LESS but this doesn't comes as a standard option.

I'll give it a try for sure. I'll go and assume that the $rowid will be replaced with the current rowid.

Thanks troester
 
Status
Not open for further replies.
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top