Developer forum

Forum » Feature requests » Hide for Phone/Tablet functionality on paragraph level

Hide for Phone/Tablet functionality on paragraph level

Jop Reuvers
Reply

Hi,

We would like to be able to make sure certain paragraphs aren't being rendered for phone versions, e.g. paragraphs for carousels, so we can minimize the data that's being send to the user. Is It possible to add an option Hide for phone and Hide for tablet, as is implemented on page level, on paragraph level? Which, when enabled, doesn't render the selected paragraph on the front-end. At the moment we're just hidding certain placeholders on the front end, but this way the user still receives all the data.


Replies

 
Nicolai Høeg Pedersen
Reply

Hi Jop.

 

Yes, that is a great suggestion. I will put it in the product backlog for a future release.

 

You can avoid sending the data already though. In your template you can make a conditional that will not render anything (and not send it out either) for specific devices.

 

Something like this:

 

<!--@If Not(Global:Device.IsMobile)-->
<div>Carousel markup</div>
<!--@EndIf-->
 
Jop Reuvers
Reply

Thank you Nicolai, will try your suggestion for the solution I'm working on now.

 
Nicolai Høeg Pedersen
Reply

It has now been implemented! See screendump.

 

Will be out with 8.3, TFS#12432

HideForDevicesOnParagraphs.PNG
 
Olga Petrova
Reply

Hello, Nicolai

I just downloaded the DW 8.3 but there is no such possibility. Probably I need to set up some settings? Or may be I have the wrong version?

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Hi Olga,

 

Are you looking in the right place? The feature should be available when editing or creating a paragraph; it's on the Options tab (see attached). This is a screenshot from 8.3.0.0.

 

Cheers,

 

Imar

9-19-2013_3-46-08_PM.png
 
Nicolai Høeg Pedersen
Reply

It will not appear if the solution does not have an update agreement...

 
Olga Petrova
Reply

Nicolai and Imar, thank you for your answers. Yes, I do everithing right.

How is it possible to get the update agreement? Should I make some request to the hosting company?

 
Nicolai Høeg Pedersen
Reply

Hi Olga

 

Create a case in service desk - you should have a login (to engage.dynamicweb.dk). Otherwise post the site URL here, and I'll have someone take care of it.

 

BR Nicolai

 
Regin Madsen
Reply

Is this feature removed again im running a 8.3.1.11 and here its not visible

 

/Regin Madsen

 
Nicolai Høeg Pedersen
Reply

No, it is still there on the page properties and paragraph properties.

Link?