The Techjoomla Blog

Stay updated with all the latest happenings at Techjoomla. From news about the developments in your favourite extensions to Tips & Tricks about the Joomla CMS, Framework & Development.

How to get ‘btn-group’ buttons in plain html?

How to get ‘btn-group’ buttons in plain html?

We all know how to get those nice colored buttons for Radio form field type, its by adding class="btn-group” in the xml argument for that field.

There can be an exception to this, if you are not able to have a form field in your view? And you still crave for those nice colored buttons?

Here is how you can have those buttons with some plain HTML, CSS and bootstrap!

Following is a sample HTML for a radio field for yes no option which, you will need in your layout file.

<?php
$field_radio1=$field_radio2=$field_radio1_label=$field_radio2_label='';
$field_radio2='checked="checked"';
$field_radio2_label='btn-danger';
if(isset($this->field_value))
{
	if($this->field_value)
	{
		$field_radio1='checked="checked"';
		$field_radio1_label='btn-success';
		$field_radio2 = $field_radio2_label='';
	}
}
?>
<div class="input-append yes_no_toggle">
	<input type="radio" name="field_name" id="field_radio1" value="1" <?php echo $field_radio1;?>  >
	<label class="first btn <?php echo $field_radio1_label;?>" type="button" for="field_radio1"><?php echo JText::_('COM_EXT_YES');?></label>
	<input type="radio" name="field_name" id="field_radio2" value="0" <?php echo $field_radio2;?>  >
	<label class="last btn <?php echo $field_radio2_label;?>" type="button" for="field_radio2"><?php echo JText::_('COM_EXT_NO');?></label>
</div>

 

...
Tags:
Rate this blog entry:

Share this article:

">
Continue reading
305 Hits
0 Comments

How to create widgets for your Shika user dashboard?

How to create widgets for your Shika user dashboard?

In the process of making Shika's user dashboard more user friendly we have made some major changes by adding new widgets to the dashboard. With this you can now build your own widgets and give your users the freedom to choose which widgets he/ she wants to be shown on the dashboard.

We have created a new table #__tjlms_dashboard which contains all the widgets per users. If the users has not set any widgets to be shown or is using the default dashboard, basic dashboard plugins will be shown.

For Shika 1.0, user will not be able to select the widget and hence only the basic widget will be shown. This feature will be implemented in version 1.1.

...
Rate this blog entry:

Share this article:

">
Continue reading
295 Hits
0 Comments

JBolo v3.3 Development Update!

JBolo v3.3 Development Update!

Hey all,

A lot of JBolo users asked for a Skype like one page view form where users can access all chat conversations. So here we are with an update regarding JBolo development.

Here is a snapshot of how one page chat-conversations view will look like in JBolo v3.3.

...
Rate this blog entry:

Share this article:

">
Continue reading
228 Hits
0 Comments

Update - Canva. Coming soon to a Joomla near you !

Update - Canva. Coming soon to a Joomla near you !

When I saw & used Canva the first time, it was love at first sight !  With its drop dead good looks, super intuitive drag & drop & ability to use free as well as super cheap paid graphic elements including stock photos to create classy graphics, it was extremely powerful. 

To put it simply, Canva had me hooked

Believe me. I am no good at design. I mean i can appreciate good design & give inputs as to what might look good. But hey .. I am no designer. But my job does needs me to come up with graphics all the time. From blog images to newsletter headers & what not. If you can relate with that & don't want to avoid troubling your designer with every other request, then Canva is the tool you want ! 

The first thing that stuck me when I saw Canva was SocialAds. Wouldn't it be awesome to have a 'Banner Ad Designer' powered by canva to design images for Ads in SocialAds ? So i contacted Canva on twitter & they got back immediately with API access. During our discussions with Canva, we realised that Joomla in general as well as extensions like EasyBlog could benefit from a Canva integration. So thats what we decided to do first ! 

...
Rate this blog entry:

Share this article:

">
Continue reading
16202 Hits
0 Comments

Shika - an awesome new LMS extension for Joomla enters Labs

Shika - an awesome new LMS extension for Joomla enters Labs

Shika in Marathi means 'to learn'. Like with many ideas, this idea started out of frustration of the lack of good LMS systems for Joomla. Sure there are a few but we saw a dire need of something different with a fresh approach.

Shika is a Learning Management System (LMS) for Joomla. Its been in development now for more than a year & is in production use at some of our clients. We are now beginning the process to generalize the development as a plug & play product for Joomla based eLearning.

I know I am blogging pretty late ! Frankly just didn't get the time to do it till now :) 

...
Rate this blog entry:

Share this article:

">
Continue reading
25758 Hits
0 Comments
x
Subscribe to Newsletter