About arrow Support Forums Make Text BiggerMake Text SmallerReset Text Size
Export Content Support
Welcome, Guest
Please Login or Register.    Lost Password?
Re: importing mssql table (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re: importing mssql table
#322
ppatel (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
importing mssql table 1 Year, 10 Months ago Karma: 0  
I'm testing Joomla for a site and am interested in importing an MSSQL table as Content Items. The content is grouped and I can use one of the fields to assign it to a category.

My question is do you see a way to use the Export Content to import the data as Content Items? Or should I go through the mySQL admin?
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#323
Steve (Admin)
Admin
Posts: 222
graph
User Online Now Click here to see the profile of this user
Re: importing mssql table 1 Year, 10 Months ago Karma: 3  
Hi ppatel
QUOTE:
My question is do you see a way to use the Export Content to import the data as Content Items? Or should I go through the mySQL admin?


A lot would depend on how familiar you are with the way Joomla does things. If you are just starting to feel your way around I would do it this way.

In Joomla create a section and category get there ID's and add them as shown below via phpMyadmin.

Once you have the content inserted you will be able to create other sections/categories and move the items to where you want them.

QUOTE:
The content is grouped and I can use one of the fields to assign it to a category.


You would need a section id as well unless you were going to add everything as static content items in which case a section and category id are not needed.

Listed below are all the fields of the content table with the fields highlighted that will be required if you want to have a section/category(s)/content item(s) structure.

Table: jos_content
|id | title | title_alias | introtext | fulltext | state | sectionid | mask |catid | created | created_by |created_by_alias | modified | modified_by | checked_out | checked_out_time | publish_up |publish_down | images | urls | attribs | version | parentid | ordering | metakey | metadesc | access | hits |

Tips:
id is an autoIncrement field.
state should be set to "1" if you want all items published.
access is the permission level and should be set to "0" to make everything public viewable.
created_by "62" is normally the admin id.

There was a phpMyadmin Joomla extension around a while ago that would make the job a bit easier. http://extensions.joomla.org/

If you need anymore help feel free to ask.
 
Report to moderator   Logged Logged  
 
Regards Steve.
  The administrator has disabled public write access.
#376
ppatel (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Excellent 1 Year, 10 Months ago Karma: 0  
Thanks. I'll be trying this method out this weekend.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#377
Steve (Admin)
Admin
Posts: 222
graph
User Online Now Click here to see the profile of this user
Re: importing mssql table 1 Year, 10 Months ago Karma: 3  
Here is a link to the phpMyadmin component that should work OK under Joomla:
http://www.jlleblanc.com/joomla/Articles/phpMyAdmin_for_Joomla/

Note: This component has a few security issues so I would remove it when you have finished or secure it with a ".htaccess password".
 
Report to moderator   Logged Logged  
 
Regards Steve.
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop