Dummy Content

Pro version: howto set image=left of text

3 years 7 months ago #35265

Gabriel Munz's Avatar Gabriel Munz

Checking if I can use dummy_content together within 'content_templater'

Using this:

{dummy image|width=300|height=300|service=dummyimage}{dummy paragraphs=3}
How can I set (force) the image to align to the left of text?

Thanks in advance for your quick feedback,

Rgrds,

3 years 7 months ago #35266

Peter van Westen's Avatar Peter van Westen Admin

Try:

{dummy image|width=300|height=300|float=left}

3 years 7 months ago #35267

Gabriel Munz's Avatar Gabriel Munz

Works but still missing the way to set something like this to get optimum results as I could get using:

<p><img class="img-left img-polaroid" src="images/demo/400x260.png" alt="400x260px" /></p><p>{dummy paragraphs=2}</p>
> Do you see a way to get same result using dummy images?

BTW, How to control the length of each paragraph given at frontend using (sometime returns very long paragraphs and randomly short ones):
<p>{dummy paragraphs=3}</p>
Thanks again for your help,

Rgrds,

3 years 7 months ago #35269

Peter van Westen's Avatar Peter van Westen Admin

<p>{dummy image|width=400|height=260|class=img-left img-polaroid}</p>
<p>{dummy paragraphs=2}</p>
The idea of random is that it is random. So paragraph and sentence lengths will vary.
If you want a fixed number of words, use the word count:
<p>{dummy image|width=400|height=260|class=img-left img-polaroid}</p>
<p>{dummy words=200}</p>
<p>{dummy words=200}</p>

3 years 7 months ago #35271

Gabriel Munz's Avatar Gabriel Munz

[SOLVED] Excellent now... Thanks a lot!

3 years 7 months ago #35272

Peter van Westen's Avatar Peter van Westen Admin

:)

3 years 7 months ago #35273

Gabriel Munz's Avatar Gabriel Munz

Done! ;)

3 years 7 months ago #35281

Peter van Westen's Avatar Peter van Westen Admin

Thanks :)

3 years 3 months ago #40678

R Mulder's Avatar R Mulder

Peter van Westen wrote:

Try:
{dummy image|width=300|height=300|float=left}

Would be nice of that whas an option, including a default setting.

3 years 3 months ago #40680

Peter van Westen's Avatar Peter van Westen Admin

I will give the images a default class dummycontent_image in next release. That way you can add default styling via css.

3 years 3 months ago #40695

R Mulder's Avatar R Mulder

Nice!

3 years 3 months ago #40696

Gabriel Munz's Avatar Gabriel Munz

+1 thanks!