9 years ago
5
Topic

Hello,

I am brand new to SEBLOD.  J3.4.0  and SEBLOD v3.5.1

*****

Example url: /index.php?option=com_content&view=category&id=24&Itemid=404

I want the frontend article creation to automatically save into the current category.

"Article Category ID" storage shows: catid

So I set the Construction / Type to Int and variable to: catid

But it is still showing uncategorized in the frontend publishing tab and therefore saving in uncategorized.

I read/watched this but I'm still missing something:  http://www.seblod.com/resources/manuals/intermediate/playing-with-live-values 

Regards,

Jeff Mayland

572 Posts
_jrmo
9 years ago
4
Level 1

Hi!

Welcome to the forums. It's Jeff right? I think we've exchanged some communication on Twitter.

OK so the issue is that the catid isn't stored in the URL, so it's not retrievable as a variable using Live values. In the example you gave, there are 4 variables available:

  • option (string) = com_content
  • view (string) = category
  • id (int) = 24   <-- This is the ARTICLE ID, not the catid
  • Itemid (int) = 404   <- This is the menu ID

The catid is not a variable here. 

As far as I know, you have 2 options here:

  1. Use the Form & List Pack to embed your form on the page. You can then follow this tutorial on passing values from the parent to the child. The caveat here is that in the early version of this plugin, you couldn't pass values in the form mode, only the list mode. I'm not 100% sure if it allows you to pass values to a form yet.
  2. Use Simon Dowdle's "Any field as live value" plugin. The caveat is that I haven't tested it on the latest SEBLOD version, so proceed with care.

Just a note with your message, we try to encourage users here to start posts with a greeting and end with a salutation. It helps keep the community friendly :)

Thanks,

_jrmo

9 years ago
3
Level 2

Thank you.  I edited my OP with a greeting and salutation :-)

I'm trying to research the "Form & LIst Pack" before I pay to see if it passes values to a form yet.

I found Simon's plugin but not anything that appears to be compatible with j3.4 and SEBLOD v3.5.1

I found this too:  http://www.seblod.com/products/1719 but not sure how to use it yet and if it can get the current catid....


Regards,

Jeff

9 years ago
2
Level 3

James,

In my example "Category Blog" url: index.php?option=com_content&view=category&id=24&Itemid=404

24 is the category ID per Joomla Category Manager: Articles

Please clarify why I can't get that 24 as a live variable.

Thanks

Jeff

52 Posts
melihtas
9 years ago
1
Level 4

Hi,

In your live value configuration, you should set variable to "id" not "catid" since you want to catch the value of id in your link.

9 years ago
0
Level 5

Perfect.  That makes sense.  I was making it too difficult.  :-)

Thank you

Jeff