Having trouble with forms not recognising Sparky.

  • cander
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
11 years 10 months ago #25773 by cander
Hi

I have the Sparky Framework installed and am really pleased with. I also have installed (in Joomla 2.5.8) the Fabrika "stuff" which does a lot of the interaction between tables in MySQL and the front end. In Fabrika I can create table lists and attach them to a menu item and they all work nice and lovely with the sparky template. However, each item in the list has a link to be able to edit the record. This produces a form (created in Fabrika but not attached to a menu item) which presents the record data but is not themed with my predefined Sparky theme the same as the rest of the website. If I attach the form to a menu item, and specify the Sparky Template...they still don't work. That being said if I change the specified template to something other than sparky in the menu parameters....the form works fine.

Therefore I think there must be an issue between the Sparky framework and my Fabrika forms (and maybe anything else that's not attached directly to a menu item) but I just can't find it. It's probably a setting or something I have missed, so would really grateful if someone could point me in the right direction.

Thanks in advance.

Cander.
Attachments:

Please Log in to join the conversation.

More
11 years 10 months ago #25786 by ivan.milic
It looks like some css is not loaded. Arrange us so we could see that same page. Send instructions using "Report To Moderator"

Please Log in to join the conversation.

More
11 years 10 months ago #25795 by ivan.milic
sent you skype invite

Please Log in to join the conversation.

  • cander
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
11 years 10 months ago - 11 years 10 months ago #25810 by cander
I have narrowed things down a bit further. The following line of code, which is in the Sparky Template index.php file, appears to be returning the wrong data.

$u = JFactory::getURI();

It returns :

www.juststays.commyproperties/form/13/2

when it should return :

www.juststays.com/index.php/myproperties/form/13/2

If I manually correct this...my form works fine. What I can't work out is why is it doing this?
Last edit: 11 years 10 months ago by cander.

Please Log in to join the conversation.

More
11 years 10 months ago #25816 by ivan.milic
If it works it's ok. I see problem is missing / , also even if you have double // that is acceptable.

Please Log in to join the conversation.

  • cander
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
11 years 10 months ago #25818 by cander
No...it doesn't work...because I have many forms and they will all need to be manually adjusted, which isn't practical. I'm not sure why it is happening like this when the lists are fine. I've traced it all the way back to the URI.php file in Joomla/environment folder but still can't get a solution. If I need to create an absolute path somewhere...ok fine....I just don't know where the best place would be.

Any suggestions would be fantastic.

Thanks in advance.

Please Log in to join the conversation.

Time to create page: 0.083 seconds
Powered by Kunena Forum