IProperty

Intellectual Property is a full-featured real estate extension for the Joomla! CMS

IPReserve

IPReserve is a reservation extension for IProperty.

IReport

Need to keep track of your IProperty stats? Meet IReport - a reporting tool for IProperty!

Work Force

Work Force is a staff listing extension for the Joomla! CMS. Show off your employees with style!

Report Card

Report Card is a testimonials extension for the Joomla! CMS. What are people saying about your company or product?

UTransport

Ultra Transport is a full-featured vehicle listing extension for the Joomla! CMS

Project Log

Project Log is a project management extension for the Joomla! CMS. The best part is, it's totally free!

Forums

Have pre-sales questions or need support for an existing subscription? Look no further - we have active support forums and pride ourselves on friendly and timely response!

The Thinkery

Not finding what you're looking for? Don't hesitate to contact us!

Before Posting...

Before posting questions in the forums, please be sure to read the FAQs by clicking on the FAQs link in the sidebar product menu. You must be logged in and have a valid subscription to access the SUPPORT FORUMS.
×
Support Policy Notice

As outlined in our Rules section (though never closely followed by our staff!), effective immediately we will no longer be taking time to provide customizations of our products.

Video presentation instead of images.

  • mediaoffline
  • mediaoffline's Avatar Topic Author
  • Offline
  • Puzzler
  • Puzzler
More
4 years 6 months ago - 4 years 6 months ago #43001 by mediaoffline
mediaoffline created the topic: Video presentation instead of images.
Hello
Is it possible to create a template override to simply modify the default property view, and to display the first property video in the main area of the template?
A full width video player at the top of the page,
and all details,maps,etc at the bottom of the page.
Using youtube video code or embed code or link.

Preview here:

Attachment preview.jpg not found

Attachments:
Last Edit: 4 years 6 months ago by mediaoffline.

Please Log in or Create an account to join the conversation.

More
4 years 6 months ago - 4 years 6 months ago #43007 by tim
tim replied the topic: Video presentation instead of images.
Yes. You'd create an override for the components/com_iproperty/views/property/tmpl/default.php file, and at the top of the template create a div for the video, with an appropriate class attached so you can style it as you require. I'd make it a full 12 colspan, and probably wrap it in an "if" statement so that if there's no video for the listing, it won't show.

Inside the if block, it depends on what you want to do-- if you're using a plugin to control / embed video, then you'd just use the appropriate embed tag, as explained in the plugin's documentation. On the other hand you could statically code your embed, assuming you'd be using the same format for (for example) a YouTube link.

In this case I'm putting it in the "ip-before-property block rather than writing a new div for it, and just using the default YouTube embed tag, set to 100% width. You can adjust the height as you like. Then you'd just add the YouTube video ID to the property / video value (eg. iyTTX6Wlf1Y), and the embed takes care of the rest.
<?php
// trigger onBeforeRenderToolbar plugins
$this->dispatcher->trigger('onBeforeRenderToolbar', array($this->settings));
 
// trigger onBeforeRenderProperty plugins
echo '<div class="ip-before-property">';
$this->dispatcher->trigger('onBeforeRenderProperty', array($this->p, $this->settings));
 
if ($this->p->video) {
	echo '<iframe width="100%" height="315" src="//www.youtube.com/embed/'.$this->p->video.'" frameborder="0" allowfullscreen></iframe>';
}
echo '</div>';
?>
Last Edit: 4 years 6 months ago by tim.
The following user(s) said Thank You: mediaoffline

Please Log in or Create an account to join the conversation.

More
4 years 6 months ago - 4 years 6 months ago #43008 by tim
tim replied the topic: Video presentation instead of images.
You're also welcome to try this new plugin I put together. It's not too well tested so let me know if you run into any surprises.
It works the same way-- just add the YouTube video ID to the IP video tab, and the plugin will do the rest.

Attachment plg_ip_ytembed.zip not found

Attachments:
Last Edit: 4 years 6 months ago by tim.

Please Log in or Create an account to join the conversation.

  • mediaoffline
  • mediaoffline's Avatar Topic Author
  • Offline
  • Puzzler
  • Puzzler
More
4 years 6 months ago #43016 by mediaoffline
mediaoffline replied the topic: Video presentation instead of images.
Yes...It works without any plugin...thank you.
The only issue is the Pin it button...see attachment.
It's above the video window, upper right corner.

Attachment ScreenShot2014-10-07at9.32.08AM.jpg not found

Attachments:

Please Log in or Create an account to join the conversation.

  • mediaoffline
  • mediaoffline's Avatar Topic Author
  • Offline
  • Puzzler
  • Puzzler
More
4 years 6 months ago #43017 by mediaoffline
mediaoffline replied the topic: Video presentation instead of images.
With plugin enabled
IProperty - YouTube Video Embed
i see three video duplicates

Please Log in or Create an account to join the conversation.

More
4 years 6 months ago #43018 by tim
tim replied the topic: Video presentation instead of images.
three video duplicates? where? Please post a link or screenshot.
If you use the plugin, comment out your original modifications.
If you choose to use your original changes rather than the plugin, move the youtube embed code above the plugin trigger like this:
<?php
// trigger onBeforeRenderToolbar plugins
$this->dispatcher->trigger('onBeforeRenderToolbar', array($this->settings));
 
// trigger onBeforeRenderProperty plugins
echo '<div class="ip-before-property">';
if ($this->p->video) {
	echo '<iframe width="100%" height="315" src="//www.youtube.com/embed/'.$this->p->video.'" frameborder="0" allowfullscreen></iframe>';
}
$this->dispatcher->trigger('onBeforeRenderProperty', array($this->p, $this->settings));
echo '</div>';
?>

Please Log in or Create an account to join the conversation.

Time to create page: 0.373 seconds