Skip to Content

Drupal ... Block expand and collapse

Ahmed Hashim's picture
Conceptor's picture

Adc theme.

MohamedSameer could give you better answer if he were available.

Diaa Radwan

Ahmed Hashim's picture

i hope that i don't change th

i hope that i don't change the theme to use this feature. thnx


Ahmed Hashim

Ahmed Hashim's picture

MSameer is sleeping

it seems that Mohamed Sameer is sleeping, 7ad yesa7eh ya gama3a :) is he in hurghada? i am guessing ;)


Ahmed Hashim

MSameer's picture

Was in Hurghada and I've just

Was in Hurghada and I've just returned now!

This is a feature in the theme I use.

You'll have to modify your theme for it.

If you'll do so, Tell me and I'll try to provide details.

Quote "c u next life time then when i come back as a mug of tea :P"

Ahmed Hashim's picture

OK

its ok i will modify the theme it will be fine if you provide details. thnx


Ahmed Hashim

MSameer's picture

You must include the JS file:

You must include the JS file: rollup.js from the theme.

You'll notice: function adc_block($block)

Start from here!

Quote "c u next life time then when i come back as a mug of tea :P"

Ahmed Hashim's picture

Thnx

Thats good. it is easy.


Ahmed Hashim

Alaa's picture

relies on javascript

this is a simple technique but relies on javascript, basicly the onclick event changes the class of the content of the block to some class with display: none; or something like that.

Alaa


"i`m feeling for the 2nd time like alice in wonderland reading el wafd"

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.


Dr. Radut | forum