10 years ago
8
Topic
Hi there,

Thank you for making such a powerful solution.  Unfortunately, something which seems like it should be very easy has been impossible for me to decipher.  How do I make a copy of an existing content type so that I can make multiple content types that are just slight variations on the same theme?

For example, If I want to add just a few extra fields in to the standard article content type, but I do not want to do so to the original article content type, how do I do so?

Thanks!

Best Regards,
Eric
Get a VIP membership
10 years ago
0
Level 1
I think you want to copy a field, as far as i know there isn't any copy function in seblod for this.
What i do is to copy the field directly in the database, phpmyadmin has copy only change title and name, you can also edit the other fields that needs to be changed if you want.
You will find your fields in _cck_core_fields, but always do a backup before you start to copy fields in database since it's rather easy to do things wrong.
If you need many fields that's almost the same then i find it faster to create one in seblod and then fix the rest of them in phpmyadmin.
693 Posts
rpoy
10 years ago
6
Level 1
Hi,

Actually you can make copies of your content types.  In your Content Types select with the check box, then look for the batch button along the top.  Select your App folder that you wish to associate your Content Type with, give it a new name and hit the Go button!

The only problem that I can see with making copies of your fields with in phpMyAdmin is that the storage options might not be what you want.  But you can also make copies of fields also using the batch command.

Hope that helps,

Randy

10 years ago
5
Level 2

Hi, there is no copy function in the field batch modal box.

So how can we copy a field exactly ?

thanks

693 Posts
rpoy
10 years ago
4
Level 3

Hi Pagchen,

Welcome to the SEBLOD Forum.

Please take a moment to review the documentation in the Manuals section. It would also be helpful for you to be familiar with the SEBLOD storage methodology in this tutorial and videos.

There is not a method for copying fields at this time.  I'm not sure why would would need to do that - as you can create new fields easily when you are building your Content Type.  As you add your fields, it adds them to your content type automatically.

Hope that helps,

Randy

10 years ago
3
Level 4

Hi Randy, thank you for the prompt answer and the links, I've already went through the manual section but will look at the other two.

I am asking because I want to modify the default Article Grp Images & Links to exclude the intro image.

I thought to copy it first in case I screw things up, but see no way to do this.

So you're suggesting to always start from a fresh empty Content Type. And I suppose I just disable the default Article content type.

I used version 1.x years ago and have to get back on the saddle to update my client old 1.5 site.

Thanks.

693 Posts
rpoy
10 years ago
2
Level 5

Hi Pagchen,

There have been a ton of changes since 1.5!!

Obviously it depends on the site you are building and who you are building it for.  But in many cases I think starting a content type using the Article skeleton is a good staring point.  You can change the label to "rename" the field and in most cases you want to have a title field, etc.  Of course if you don't want them in the content type you can just click them off.

Another method is to start with a blank content type and then create the field names with the content type. So if I am creating a Content Type (Book) I will name the fields, Book_Name, Book_image, etc.

What do you mean by the intro image?

thanks,

Randy

10 years ago
1
Level 6

Hi Randy

By Intro Image I meant the field Article Image Intro inside the Article Grp Images & Links Content type.

Which is linked to Joomla Article Intro Image field.

Cheers.

693 Posts
rpoy
10 years ago
0
Level 7

Hi Pagchen,

Of course its always good to make frequent backups using something like Akeeba Backup.

You can simply remove that field from the content type.  If you don't like the results you can add it back in.

Hope that helps,

Randy

Get a Book for SEBLOD