Keyword

K2 different Image and Attatchment Path

More
8 years 6 months ago #152113 by Odin Mayland
Replied by Odin Mayland on topic K2 different Image and Attatchment Path
My assumed workflow would be to allow the client to upload the mp3 via the attachment tab which would also serve as a download feature and then when the client goes to the Media tab and clicks "Browse media on server" they would be able to choose that same mp3 file.

The Media:Browse media on server goes to /images

I set the attachment root to be "images/podcasts" but when I upload an attachment it does not appear in "images/podcasts".

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 6 months ago #152125 by Krikor Boghossian
Replied by Krikor Boghossian on topic K2 different Image and Attatchment Path
Which folder are they uploaded to?

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
8 years 6 months ago #152128 by Joe Campbell
Replied by Joe Campbell on topic K2 different Image and Attatchment Path
This is a good example of how providing a "File" Extra Field type would be useful:
github.com/getk2/k2-v3-dev-build/issues/113

Please Log in or Create an account to join the conversation.

  • Alex
  • Alex's Avatar Topic Author
  • Offline
  • Junior Member
More
8 years 6 months ago #152190 by Alex
Replied by Alex on topic K2 different Image and Attatchment Path

Lefteris wrote: @Alex
What you want to achieve cannot be done without hacking K2.
I suggest to use extra fields and link directly to that file instead of using attachments.

Hmm... my Problem is that i already do use the extra fields (listed) at anouter position of the item.php.
I mean, is it a problem that one file could be attatched to different k2 items, as attatchment?
Is there a chance that it comes with k2v3?
I mean, i can imagine, that this is relevant for many people, who want to maintain their website without much effort.
If the attatchment has to be maintained often, the ftp solution would be the easyest one.

Please Log in or Create an account to join the conversation.

More
8 years 6 months ago #152211 by Odin Mayland
Replied by Odin Mayland on topic K2 different Image and Attatchment Path

Alex wrote:

Lefteris wrote: Hmm... my Problem is that i already do use the extra fields (listed) at anouter position of the item.php.


Correct me if I am wrong but you can position an extrafield wherever you want with this code:
<?php echo $extrafields[XXX];?>
Where XXX is the numerical id of the custom field you want to display.

Please Log in or Create an account to join the conversation.

  • Alex
  • Alex's Avatar Topic Author
  • Offline
  • Junior Member
More
8 years 6 months ago #152242 by Alex
Replied by Alex on topic K2 different Image and Attatchment Path

Jeff Mayland wrote: Correct me if I am wrong but you can position an extrafield wherever you want with this code:

<?php echo $extrafields[XXX];?>
Where XXX is the numerical id of the custom field you want to display.

Hi Jeff,
yes you are of course right. i could do it like this.
But i think this is not a nice solution. Since there is an attatchment field, i would like to use it for attatchments.
And i think many people would like to use it in that way, i told, for easy maintanance.
Coding out one extra field, in the extra field list, and use it as attatchmant, is possible, but not a nice clean solution, in my eys.

Please Log in or Create an account to join the conversation.

More
8 years 6 months ago #152243 by Odin Mayland
Replied by Odin Mayland on topic K2 different Image and Attatchment Path

Alex wrote:

Jeff Mayland wrote: Coding out one extra field, in the extra field list, and use it as attatchmant, is possible, but not a nice clean solution, in my eys.


I completely agree.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 6 months ago #152294 by Krikor Boghossian
Replied by Krikor Boghossian on topic K2 different Image and Attatchment Path

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Alex
  • Alex's Avatar Topic Author
  • Offline
  • Junior Member
More
8 years 6 months ago - 8 years 6 months ago #152418 by Alex
Replied by Alex on topic K2 different Image and Attatchment Path

Krikor wrote: github.com/kricore/Advanced-templating-with-K2/blob/master/_inc/cheatsheet.php#L104-L109

You can also use this code.


Okay, i try i like this and got it working.
I choosed extra field "text field". Then the Name is fixed the name of the extra field, i mean i can not change it due a field value. But the value is.
Thankt you very mutch for your help.
Last edit: 8 years 6 months ago by Alex.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 6 months ago #152442 by Krikor Boghossian
Replied by Krikor Boghossian on topic K2 different Image and Attatchment Path
You 're welcome Alex.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum