Flexibility icon indicating copy to clipboard operation
Flexibility copied to clipboard

Dropdown not working on touch.

Open DESIGNfromWITHIN opened this issue 12 years ago • 5 comments

Need to change/optimize the navigation for smaller devices.

DESIGNfromWITHIN avatar Dec 04 '12 08:12 DESIGNfromWITHIN

Hi Menno,

I posted this also on the MODX forum in the Flexibility thread. Looking at the examples in the Foundation Navigation documentation I noticed that flyout-toggle is in their code. The examples work on an iPad and iPhone. I think this is the problem. Inspecting a page the flyout-toggle part highlights the little triangle and make it active.

Ad.

Showa avatar Dec 05 '12 18:12 Showa

Found it! Changed rowTpl to this:

!-- rowTpl --> li[[+wf.id]] class="[[+wf.classnames]]" a href="[[+wf.link]]" title="[[+wf.title]]" [[+wf.attributes]]>[[+wf.linktext]] a href="#" class="flyout-toggle"> [[+wf.wrapper]] /li>

(Took out some < to make the code visible.) Dropdown works now on touchscreen.

Ad.

Showa avatar Dec 05 '12 18:12 Showa

Problem not quite solved. It is working but in the submenu extra squares are added, Clicking on them it is reffering to a none excisting page called #.

Showa avatar Dec 06 '12 10:12 Showa

I changed the menu to a select item for small screens, will update the nav soon for iPad sizes...

DESIGNfromWITHIN avatar Jan 18 '13 22:01 DESIGNfromWITHIN

Problem solved with original nav-bar by mmcgee see: http://forums.modx.com/thread/?thread=81142&page=2

Showa avatar Mar 07 '13 18:03 Showa