- Posts: 50
- Thank you received: 0
Problem with editing a article
-
lukasz8
Inactive member -
Topic Author
- Member
-
Less
More
3 years 2 months ago #48498
by lukasz8
Replied by lukasz8 on topic Problem with editing a article
Hi,
Thx, just update and it look like to work fine
Thx, just update and it look like to work fine
Please Log in to join the conversation.
-
lukasz8
Inactive member -
Topic Author
- Member
-
Less
More
- Posts: 50
- Thank you received: 0
3 years 2 months ago #48516
by lukasz8
Replied by lukasz8 on topic Problem with editing a article
Next issue
1. After the article saving a floor plans show always 3 even only 1or2 are update
2. When I add an additional field in the DETAIL group it doesn't show on the page
1. After the article saving a floor plans show always 3 even only 1or2 are update
2. When I add an additional field in the DETAIL group it doesn't show on the page
This message contains confidential information
Please Log in to join the conversation.
-
milos
Support Staff -
- Moderator
-
Less
More
- Posts: 6793
- Thank you received: 722
3 years 2 months ago #48518
by milos
Replied by milos on topic Problem with editing a article
Hello,
We noticed the errors and we’ll update files within 24h. I will let you know what should be charged.
Thanks,
Milos
We noticed the errors and we’ll update files within 24h. I will let you know what should be charged.
Thanks,
Milos
Please Log in to join the conversation.
-
milos
Support Staff -
- Moderator
-
Less
More
- Posts: 6793
- Thank you received: 722
3 years 2 months ago #48519
by milos
Replied by milos on topic Problem with editing a article
Hello again,
1. To fix this error, edit file /templates/sparky_framework/html/com_content/article/default.php and change this line (around line 425):
with this:
2. Regarding the adding new fields, this is what you should do. This guide includes an example (adding the second price).
This should be performed by a person who is experienced in Joomla and also PHP coding. You need to create the additional field(s) in Joomla or copy existing fields (the same way as you copy articles) in Content > Fields.
Then, you need to edit file /templates/sparky_framework/html/layouts/com_fields/fields/render.php and, if the name of your new field is "price2", below this:
add this:
Finally, in files:
/templates/sparky_framework/html/com_content/featured/default_item.php
/templates/sparky_framework/html/com_content/category/blog_item.php
/templates/sparky_framework/html/com_content/article/default.php
below:
you need to add the output of the new field. In an example, if the label of the new field is "Price2":
Best regards,
Milos
1. To fix this error, edit file /templates/sparky_framework/html/com_content/article/default.php and change this line (around line 425):
Code:
if( $field->name == "floor-plan-" . $i && $field->rawvalue ) {
with this:
Code:
if( $field->name == "floor-plan-" . $i && $field->rawvalue && strpos($field->rawvalue, '{"imagefile":""') === false ) {
2. Regarding the adding new fields, this is what you should do. This guide includes an example (adding the second price).
This should be performed by a person who is experienced in Joomla and also PHP coding. You need to create the additional field(s) in Joomla or copy existing fields (the same way as you copy articles) in Content > Fields.
Then, you need to edit file /templates/sparky_framework/html/layouts/com_fields/fields/render.php and, if the name of your new field is "price2", below this:
Code:
if ($class == "price") {
echo FieldsHelper::render($context, 'field.price', array('field' => $field));
}
add this:
Code:
if ($class == "price2") {
echo FieldsHelper::render($context, 'field.price', array('field' => $field));
}
Finally, in files:
/templates/sparky_framework/html/com_content/featured/default_item.php
/templates/sparky_framework/html/com_content/category/blog_item.php
/templates/sparky_framework/html/com_content/article/default.php
below:
Code:
if( $field->label == "Price") {
echo '<div class="price">' . $template->params->get('currencySymbol', '$') . number_format($field->value) . '</div>';
}
you need to add the output of the new field. In an example, if the label of the new field is "Price2":
Code:
if( $field->label == "Price2") {
echo '<div class="price">' . $template->params->get('currencySymbol', '$') . number_format($field->value) . '</div>';
}
Best regards,
Milos
Please Log in to join the conversation.
-
lukasz8
Inactive member -
Topic Author
- Member
-
Less
More
- Posts: 50
- Thank you received: 0
3 years 2 months ago #48534
by lukasz8
Replied by lukasz8 on topic Problem with editing a article
HI
When you are uploading photos to the details page view of property it should be cut to the fix dimension to avoid a template layout issue
When you are uploading photos to the details page view of property it should be cut to the fix dimension to avoid a template layout issue
This message contains confidential information
Please Log in to join the conversation.
-
lukasz8
Inactive member -
Topic Author
- Member
-
Less
More
- Posts: 50
- Thank you received: 0
3 years 2 months ago #48536
by lukasz8
Replied by lukasz8 on topic Problem with editing a article
Next issue:
the checkbox HOT OFFERT can't be unchecked. When I will uncheck this checkbox then I will click the SAVE button the checkbox after reloading plage is checked
the checkbox HOT OFFERT can't be unchecked. When I will uncheck this checkbox then I will click the SAVE button the checkbox after reloading plage is checked
Please Log in to join the conversation.
Time to create page: 0.096 seconds