? ? Pending

User tests: Successful: Unsuccessful:

avatar ravisaxena23
ravisaxena23
15 Feb 2020

Summary of Changes

tried to make layout builder free of class="column-count-md-2 column-count-lg-3 by using condition.
1 Because of this whole screen cannot be used. it stuck all the stuff to left.
2 because of it blue buttons are working but changes are not shown on frontend.
before
Screenshot (45)

Testing Instructions

please check for possible break this line can cause.

Expected result

this line should not cause break in any other code.

Actual result

working fine on my machine.
after
Screenshot (49)

Documentation Changes Required

avatar ravisaxena23 ravisaxena23 - open - 15 Feb 2020
avatar ravisaxena23 ravisaxena23 - change - 15 Feb 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 15 Feb 2020
Category Layout
avatar brianteeman
brianteeman - comment - 15 Feb 2020

How can you say that this change will not break any existing code

avatar ravisaxena23
ravisaxena23 - comment - 15 Feb 2020

How can you say that this change will not break any existing code

it make changes only when label is layout builder else it will make no change to code.hence everything should run as good as they were running before

avatar brianteeman
brianteeman - comment - 15 Feb 2020

I suggest that you read the code again. Because the code in the PR absolutely changes existing behaviour

image

avatar ravisaxena23
ravisaxena23 - comment - 15 Feb 2020

I suggest that you read the code again. Because the code in the PR absolutely changes existing behaviour

image

sorry my bad. made right again

avatar ravisaxena23 ravisaxena23 - change - 15 Feb 2020
Labels Added: ?
avatar ravisaxena23
ravisaxena23 - comment - 15 Feb 2020

made code right again

avatar brianteeman
brianteeman - comment - 15 Feb 2020

I have no idea why you are doing this but as the value of the label is coming from

$label = Text::_($fieldSet->label);

it is being translated and therefore your code wont work

avatar ravisaxena23
ravisaxena23 - comment - 15 Feb 2020

I have no idea why you are doing this but as the value of the label is coming from

$label = Text::_($fieldSet->label);

it is being translated and therefore your code wont work

I don't know why but the code is working already tried it in pagebuilder repo. i think when
$label = Text::_($fieldSet->label); is translated to "layout builder" string matching take place. in this block of code first $label value is set then condition is checked therefore it is working. my main aim is to restrict this

coming in layout builder. since it is causing trouble. it was the best way as per my small knowledge.

I'm open for suggestions please suggest me a better way @brianteeman .

avatar ravisaxena23
ravisaxena23 - comment - 15 Feb 2020

@Quy removed class thanks for suggestion i forget to remove.

avatar brianteeman
brianteeman - comment - 15 Feb 2020

As soon as the label is translated or there is a language override then your code obviously wont work

  1. You would need to compare with the constant not the value
  2. Are you sure that reusing this params layout is the best option - wouldn't it be better to have your own layout to use for the layout builder
avatar ravisaxena23
ravisaxena23 - comment - 16 Feb 2020

1 you are right I'm sorry I forget joomla uses multi language I will work into it.
2 I don't think we should make new params layou for layout builder. We should never repeat our code. All work can be done by just adding one condition why should we make new layout? It will increase code. If still it is necessary please explain.

avatar ravisaxena23
ravisaxena23 - comment - 16 Feb 2020

@brianteeman hey i am using id as a constant for layout builder. while defining fileldset for layout builder we will need id. what you say? am i in right direction please guide.

avatar brianteeman
brianteeman - comment - 16 Feb 2020

The entire point of layouts is that they are single purpose.

avatar ravisaxena23
ravisaxena23 - comment - 16 Feb 2020

The entire point of layouts is that they are single purpose.

ok

avatar Quy
Quy - comment - 18 Feb 2020

@ravisaxena23 Please advise status.

avatar ravisaxena23
ravisaxena23 - comment - 19 Feb 2020

@Quy I'm trying to understand code more better. And thinking a way to make changes possible without changing any joomla core file. For now we can close this pr. I will try something new in pagebuilder repo. If it works we don't have to make changes in Joomla core.
I'm open for any suggestion and help. If there is any better way to do things please explain to me.

avatar Quy
Quy - comment - 20 Feb 2020

Let’s close for now. If you come up with a fix, this can be reopened. Thanks.

avatar Quy Quy - close - 20 Feb 2020
avatar Quy Quy - change - 20 Feb 2020
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2020-02-20 03:24:04
Closed_By Quy
Labels Added: ?

Add a Comment

Login with GitHub to post a comment