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.

[SOLVED] How to echo release_id

More
4 years 1 month ago - 4 years 1 month ago #45640 by tootie
tootie created the topic: [SOLVED] How to echo release_id
I can't figure out how to echo the release_id or job_id. I need to know how to do this to integrate a Google Map. I have these two set for lattitude and longitude.
Last Edit: 4 years 1 month ago by tootie.

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

More
4 years 1 month ago - 4 years 1 month ago #45642 by tootie
tootie replied the topic: How to echo release_id
Nevermind. I figured it out.
<?php echo $this->project->release_id; ?>

I was trying to write release_id as $release_id.
I now have a functional interactive Google Map that loads the project location by Lattitude and Longitude!
Last Edit: 4 years 1 month ago by tootie.

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

More
4 years 1 month ago #45646 by tootie
tootie replied the topic: [SOLVED] How to echo release_id
Also, if anyone wants to implement a Google Map into their Project, Here's the code.

Create a template override and add this code to templates/YOUR_TEMPLATE/html/com_projectlog/project/default.php


<?php // display Google Map ?>
			<h3>Google Map:</h3>
			 <iframe width="100%" height="450" frameborder="0" style="border:0" src="https://www.google.com/maps/embed/v1/place?key=[b]YOUR_API_KEY[/b]=<?php echo $this->project->release_id; ?>,<?php echo $this->project->job_id;?>&zoom=15&maptype=satellite"></iframe>

You can specify where you want to add the map on the page, I chose to add it after the "Specific Location" around line 95. Add the above directly after this:
<?php // show specific location ?>
            <?php if ($this->project->specific_loc && $this->params->get('show_specific_loc')) : ?>
                <h3><?php echo JText::_('COM_PROJECTLOG_SPEC_LOC'); ?>:</h3> 
                <?php echo nl2br ( $this->project->specific_loc, true ); ?>
            <?php endif; ?>


As you can see I set release_id as Lattitude and job_id as Longitude. Change this in your language file.

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

Moderators: vinny
Time to create page: 0.386 seconds