#1 November 20, 2013 11:07am

acargo
Member
Registered: November 20, 2013
Posts: 2

Right justified callouts

Is it possible to right justify or right float a callout? If so, how does one go about doing this?

Offline

#2 November 20, 2013 11:10am

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

Re: Right justified callouts

By default in BigTree callouts are just chunks of data. On the front end you can draw them however you like.

In the past when we've used the callout system to draw multiple types of callouts (left, right, and content blocks) we add an alignment field to the callout's resources. Then we loop through the available callouts in 3 places checking the alignment and drawing them in the proper spot.

Offline

#3 November 20, 2013 11:35am

acargo
Member
Registered: November 20, 2013
Posts: 2

Re: Right justified callouts

I guess I'm missing something.


How or where would you handle the following: "Then we loop through the available callouts in 3 places checking the alignment and drawing them in the proper spot."

Offline

#4 November 20, 2013 11:38am

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

Re: Right justified callouts

BigTree provides the $bigtree["page"]["callouts"] array to your page's template when rendering. You use that array to loop / draw your callouts.

In the example site you can see how we do that in /templates/layouts/default.php beginning on line 21.

Offline

Board footer

Powered by FluxBB

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