#1 December 5, 2017 5:15am

tunga
Member
Registered: December 5, 2017
Posts: 8

Module Preview

I provided Preview URL's for module views. Preview icons are shown okay on the views.

The problem is when I click preview of the changed or pending items, it shows published version, not the changed version. Please help me on this.

Offline

#2 December 5, 2017 8:53am

timbuckingham
Administrator
From: Baltimore, MD
Registered: April 2, 2012
Posts: 932

Re: Module Preview

You need to query for the pending copy of the module item and display it via your routes template. The preferred way of doing that is calling

BigTreeAutoModule::getPendingItem(“your_table_name”, $bigtree[“commands”][0]);

. That will return an array containing the pending item as well as any tag and many to many changes to the item.

Offline

#3 December 6, 2017 5:04am

tunga
Member
Registered: December 5, 2017
Posts: 8

Re: Module Preview

Thank you so much. I should have asked you earlier.

Offline

Board footer

Powered by FluxBB

The Discussion Forum is not available on displays of this size.