Search found 9 matches

by permalink
Tue Feb 26, 2008 7:02 am
Forum: Joombie Coding Q/A
Topic: "admin only" component
Replies: 1
Views: 492

Re:

well I do know that in your install xml you need to have this, hopefully its all you need: <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE install SYSTEM "http://dev.joomla.org/xml/1.5/component-install.dtd"> <install type="component" version="1.5.0"...
by permalink
Tue Feb 26, 2008 6:56 am
Forum: Joombie Coding Q/A
Topic: javascript to populate select
Replies: 6
Views: 894

Re: javascript to populate select

without knowing exactly what you want to do, here are some relevant js entries, hopefully this will help you: <script language="JavaScript"> function myJSMethod(){ //selects var prov_select = document.forms['myform'].provinces; var univ_select = document.forms['myform'].universities; //sel...
by permalink
Tue Feb 26, 2008 6:25 am
Forum: Joombie Coding Q/A
Topic: JTable Best Practice Question
Replies: 2
Views: 686

Re: JTable Best Practice Question

I generally use an auto increment primary key on tables with composite keys anyways. You can then use store() and delete() when you want to use the id, or you can override if you want to do things like delete a record by the composite key. Nice thing about this is you can use it to delete all the re...
by permalink
Tue Feb 26, 2008 5:51 am
Forum: Joombie Coding Q/A
Topic: Help finding the number of content items in a category
Replies: 1
Views: 287

Re: Help finding the number of content items in a category

For the number of content items in a category, you will need to join the two tables by pairing up their columns in common: the foreign key 'catid' in the content table and the primary key 'id' of the category table. use this: SELECT count(c.id) FROM #__content c INNER JOIN #__categories AS cat ON ca...
by permalink
Tue Feb 26, 2008 5:31 am
Forum: Joombie Coding Q/A
Topic: Component-wide template with MVC
Replies: 1
Views: 367

Re: Component-wide template with MVC

If I understand what you are saying correctly try this: look in the front end of the com_content component and you will see com_content/views.php defining this class: class ContentView extends JView Then in the /views directory you will see /article/view.html.php && /category/view.html.php e...
by permalink
Mon Feb 25, 2008 11:55 pm
Forum: Joombie Coding Q/A
Topic: Is there an event fired when a content item is deleted?
Replies: 0
Views: 235

Is there an event fired when a content item is deleted?

I am creating a component that adds fields to a content items using a relation table. This simple M2M relation table is fields_content and it relates content ids to field ids from a fields table. I would like to be able to clear out the relationship table of old content ids when the content is delet...
by permalink
Mon Feb 25, 2008 2:24 am
Forum: Joombie Coding Q/A
Topic: Open-Ended HTML Tags Closed Automatically?
Replies: 1
Views: 339

Re: Open-Ended HTML Tags Closed Automatically?

I think Firefox is closing the hanging tags automatically, I do not see the close tags in ie.
by permalink
Wed Feb 20, 2008 7:36 am
Forum: Joombie Coding Q/A
Topic: Managing Extension Caching
Replies: 0
Views: 219

Managing Extension Caching

What needs to be done to manage extension caching? I have followed the cache tutorial - http://dev.joomla.org/component/option,com_jd-wiki/Itemid,/id,tips:using_caching/&s=cache - but it doesn't really make it clear what does/doesn't need to be done to introduce framework based caching. Do I nee...
by permalink
Tue Feb 19, 2008 6:12 pm
Forum: Joombie Coding Q/A
Topic: Open-Ended HTML Tags Closed Automatically?
Replies: 1
Views: 339

Open-Ended HTML Tags Closed Automatically?

I was originally going to ask if there was a function that would close any open tags that a module were to unintentionally/unavoidably produce. But after playing around with an extension I am writing, it appears that this is done automatically; however I would like to call the function, so as to hav...