Call-back icon  Questions? Contact our sales team to a request a quote

Magento

eCommerce Software for Online Growth

Magento Forum

   
How to get images or videos into blog posts? 
 
wsj3
Sr. Member
 
Total Posts:  186
Joined:  2008-07-13
Portland, OR
 

Can someone tell me how to do this? Thanks....

 Signature 

Will Johnston
http://www.growandmake.com
The Store for Sustainable Living

 
Magento Community Magento Community
Magento Community
Magento Community
 
Martin
Sr. Member
 
Avatar
Total Posts:  124
Joined:  2007-08-31
Brno | Czech republic
 

Easily, just insert image into your XHTML code as usual:

<img src="/media/images/my_image.jpg" alt="My blog image" />

Regarding video, you can insert for example Youtube video into your code like this:

<div style="width: 425px; float: right; margin: 5px 0 0 20px; padding: 0;">
    <
object width="425" height="350">
        <
param name="movie" value="http://www.youtube.com/v/JTqhrFTtsqQ&hl;=en&fs;=1" />
        <
param name="allowFullScreen" value="true" />
        <
param name="wmode" value="transparent" />
        <
embed src="http://www.youtube.com/v/JTqhrFTtsqQ&hl;=en&fs;=1" type="application/x-shockwave-flash" allowfullscreen="true" wmode="transparent" width="425" height="350"></embed>
    </
object>
</
div>
<
div style="width: 425px; float: right; text-align: center; font-size: 11px; font-style: italic; margin: 0 0 10px 20px; padding: 10px 0 5px 0; clear: both;">
    <
strong>Video legend</strong>
</
div>

 
Magento Community Magento Community
Magento Community
Magento Community
 
lazzymonk
Guru
 
Avatar
Total Posts:  353
Joined:  2008-04-03
England
 

thanx martin, beat me to that one.

 Signature 

If someone tells you its impossible, try anyway or you will never know.

Currently removing bugs from my blog extension.

 
Magento Community Magento Community
Magento Community
Magento Community
 
wsj3
Sr. Member
 
Total Posts:  186
Joined:  2008-07-13
Portland, OR
 

Where are these .xhtml files located? I was hoping that this would be like WordPress or other blog tools where you can add a pic and browse to upload.

Still think it’s great. ;>

Also, how do I enable RSS for the blog?

 Signature 

Will Johnston
http://www.growandmake.com
The Store for Sustainable Living

 
Magento Community Magento Community
Magento Community
Magento Community
 
Martin
Sr. Member
 
Avatar
Total Posts:  124
Joined:  2007-08-31
Brno | Czech republic
 

Well, there are no .xhtml files - as you might have noticed there is no WYSIWYG html editor on the backend side of Magento yet, so you have to write your blog posts in (X)HTML code - and that’s how you use above code snippets - you need to place those code snippets directly into your blog posts code where appropriate, that’s it wink

 
Magento Community Magento Community
Magento Community
Magento Community
 
lazzymonk
Guru
 
Avatar
Total Posts:  353
Joined:  2008-04-03
England
 

@wsj3. rss feeds once enabled in the config can be accessed by adding /rss to the end of the url. this will work for every part of the blog except individual post.

hope that helps

 Signature 

If someone tells you its impossible, try anyway or you will never know.

Currently removing bugs from my blog extension.

 
Magento Community Magento Community
Magento Community
Magento Community
 
wsj3
Sr. Member
 
Total Posts:  186
Joined:  2008-07-13
Portland, OR
 

Martin, Thanks for the help on the image/video!

LM, I’m not sure where I put the /rss? At the end of which URL? I’d like something that enables the browsers ability to detect that a feed is available on the browser.

Thanks!

 Signature 

Will Johnston
http://www.growandmake.com
The Store for Sustainable Living

 
Magento Community Magento Community
Magento Community
Magento Community
 
lazzymonk
Guru
 
Avatar
Total Posts:  353
Joined:  2008-04-03
England
 

@wsj3 allowing browsers to detect rss feeds (rss logo at the end of url bar in ff3) is coming soon.

a url would be domain.com/magento/blog/rss

 Signature 

If someone tells you its impossible, try anyway or you will never know.

Currently removing bugs from my blog extension.

 
Magento Community Magento Community
Magento Community
Magento Community
 
wsj3
Sr. Member
 
Total Posts:  186
Joined:  2008-07-13
Portland, OR
 

Great! Would it be hard for me to add some columns to the blog so I can have links to resoces on the left and right? Which file would I edit to allow that, or is that something you don’t recommend. It feels kind of vanilla without anything but posts.

Great stuff!

 Signature 

Will Johnston
http://www.growandmake.com
The Store for Sustainable Living

 
Magento Community Magento Community
Magento Community
Magento Community
 
lazzymonk
Guru
 
Avatar
Total Posts:  353
Joined:  2008-04-03
England
 

to add extras to the menu you would need to edit menu.phtml in the template directory.

 Signature 

If someone tells you its impossible, try anyway or you will never know.

Currently removing bugs from my blog extension.

 
Magento Community Magento Community
Magento Community
Magento Community
 
lazzymonk
Guru
 
Avatar
Total Posts:  353
Joined:  2008-04-03
England
 

well its now 4.38am and i finally managed to do the rss thing. it will be released tomorrow with a few other bug fixes.

Now im going to bed.

 Signature 

If someone tells you its impossible, try anyway or you will never know.

Currently removing bugs from my blog extension.

 
Magento Community Magento Community
Magento Community
Magento Community
 
wsj3
Sr. Member
 
Total Posts:  186
Joined:  2008-07-13
Portland, OR
 

Hi Lazzymonk,

It’s not clear to me how the RSS you describe is fixed or supposed to work? When I am viewing my blog in IE the RSS button is not highlighted, which is an indicator that the page is RSS enabled? Is there something I need to do to enable this? Do I need to upload a new version of the blog?

Thanks!

 Signature 

Will Johnston
http://www.growandmake.com
The Store for Sustainable Living

 
Magento Community Magento Community
Magento Community
Magento Community
 
lazzymonk
Guru
 
Avatar
Total Posts:  353
Joined:  2008-04-03
England
 

rss has to be enabled in the blog config.

 Signature 

If someone tells you its impossible, try anyway or you will never know.

Currently removing bugs from my blog extension.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Costa
Jr. Member
 
Avatar
Total Posts:  13
Joined:  2007-11-21
Shenzhen China
 

Hi All,

I have just installed the blog and its great! Thanks very much!

Just having problems adding images and links into my posts.
I added links in same manner as to CMS pages:

<img src="{{skin url='images/media/consolidated.jpg'}}" border="0" />
to add image
<a href="{{store url=""}}contacts/">Contact Us</a>
to add a link

but it doesn’t seem to generate the right URL i.e skin url and store url do not get translated.

Any ideas?
Thanks in advance
Costa

 Signature 

Costa Sattsaev
E-commerce Manager
Bigboxstore.com - buy wholesale quality products out of China

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
 
© Copyright 2008 Varien. Magento, eCommerce software, is a trademark of Irubin Consulting Inc. DBA Varien
Privacy Policy|Terms of Service
Magento Community Count
60006 users|780 users currently online|118858 forum posts